File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/Symfony/Component/Debug/FatalErrorHandler Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,17 @@ private function getClassCandidates($class)
103103 }
104104
105105 // get class loaders wrapped by DebugClassLoader
106- if ($ function [0 ] instanceof DebugClassLoader && method_exists ($ function [0 ], 'getClassLoader ' )) {
107- $ function [0 ] = $ function [0 ]->getClassLoader ();
106+ if ($ function [0 ] instanceof DebugClassLoader) {
107+ $ function = $ function [0 ]->getClassLoader ();
108+
109+ // Since 2.5, returning an object from DebugClassLoader::getClassLoader() is @deprecated
110+ if (is_object ($ function )) {
111+ $ function = array ($ function );
112+ }
113+
114+ if (!is_array ($ function )) {
115+ continue ;
116+ }
108117 }
109118
110119 if ($ function [0 ] instanceof ComposerClassLoader || $ function [0 ] instanceof SymfonyClassLoader) {
You can’t perform that action at this time.
0 commit comments