Skip to content

Commit c7141c8

Browse files
committed
[Debug][DebugClassLoader] Include found files instead of requiring them
1 parent 2846089 commit c7141c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Debug/DebugClassLoader.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ public function loadClass($class)
149149
if (!$file = $this->classLoader[0]->findFile($class) ?: false) {
150150
// no-op
151151
} elseif (\function_exists('opcache_is_script_cached') && @opcache_is_script_cached($file)) {
152-
require $file;
152+
include $file;
153153

154154
return;
155155
} else {
156-
require $file;
156+
include $file;
157157
}
158158
} else {
159159
\call_user_func($this->classLoader, $class);

0 commit comments

Comments
 (0)