Skip to content

Commit

Permalink
[Debug][DebugClassLoader] Include found files instead of requiring them
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyweb committed Jul 11, 2019
1 parent 2846089 commit c7141c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/Debug/DebugClassLoader.php
Expand Up @@ -149,11 +149,11 @@ public function loadClass($class)
if (!$file = $this->classLoader[0]->findFile($class) ?: false) {
// no-op
} elseif (\function_exists('opcache_is_script_cached') && @opcache_is_script_cached($file)) {
require $file;
include $file;

return;
} else {
require $file;
include $file;
}
} else {
\call_user_func($this->classLoader, $class);
Expand Down

0 comments on commit c7141c8

Please sign in to comment.