Skip to content

Commit 0185527

Browse files
committed
[Debug][DebugClassLoader] Don't check class if the included file don't exist
1 parent ee5e5de commit 0185527

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
@@ -152,8 +152,8 @@ public function loadClass($class)
152152
include $file;
153153

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

0 commit comments

Comments
 (0)