[Debug] Ensure class declarations are loaded only once

This commit is contained in:
Nicolas Grekas 2015-11-24 12:55:28 +01:00
parent 6de2304c0b
commit 01c08fccf4

View File

@ -147,7 +147,7 @@ class DebugClassLoader
try { try {
if ($this->isFinder) { if ($this->isFinder) {
if ($file = $this->classLoader[0]->findFile($class)) { if ($file = $this->classLoader[0]->findFile($class)) {
require $file; require_once $file;
} }
} else { } else {
call_user_func($this->classLoader, $class); call_user_func($this->classLoader, $class);