Skip to content

Commit 736b39a

Browse files
[Debug] fix ClassNotFoundFatalErrorHandler
1 parent 4b419f2 commit 736b39a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public static function setUpBeforeClass()
2929
// get class loaders wrapped by DebugClassLoader
3030
if ($function[0] instanceof DebugClassLoader) {
3131
$function = $function[0]->getClassLoader();
32+
33+
if (!\is_array($function)) {
34+
continue;
35+
}
3236
}
3337

3438
if ($function[0] instanceof ComposerClassLoader) {

0 commit comments

Comments
 (0)