8000 [Debug] Fix php notice · symfony/symfony@e333a1a · GitHub
[go: up one dir, main page]

Skip to content

Commit e333a1a

Browse files
enumagnicolas-grekas
authored andcommitted
[Debug] Fix php notice
1 parent 2adfb37 commit e333a1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Debug/DebugClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function loadClass($class)
186186

187187
$exists = class_exists($class, false) || interface_exists($class, false) || (function_exists('trait_exists') && trait_exists($class, false));
188188

189-
if ('\\' === $class[0]) {
189+
if ($class !== '' && '\\' === $class[0]) {
190190
$class = substr($class, 1);
191191
}
192192

0 commit comments

Comments
 (0)
0