8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd4ec4e commit 6d75f13Copy full SHA for 6d75f13
src/Util/ComposerAutoloaderFinder.php
@@ -13,6 +13,7 @@
13
14
use Composer\Autoload\ClassLoader;
15
use Symfony\Component\Debug\DebugClassLoader;
16
+use Symfony\Component\ErrorHandler\DebugClassLoader as ErrorHandlerDebugClassLoader;
17
18
/**
19
* @internal
@@ -78,7 +79,9 @@ private function extractComposerClassLoader(array $autoloader)
78
79
if ($autoloader[0] instanceof ClassLoader) {
80
return $autoloader[0];
81
}
- if ($autoloader[0] instanceof DebugClassLoader
82
+ if (
83
+ ($autoloader[0] instanceof DebugClassLoader
84
+ || $autoloader[0] instanceof ErrorHandlerDebugClassLoader)
85
&& \is_array($autoloader[0]->getClassLoader())
86
&& $autoloader[0]->getClassLoader()[0] instanceof ClassLoader) {
87
return $autoloader[0]->getClassLoader()[0];
0 commit comments