8000 [Debug] Fix ClassNotFoundFatalErrorHandler related to PSR-4 · symfony/symfony@5ce25ef · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ce25ef

Browse files
[Debug] Fix ClassNotFoundFatalErrorHandler related to PSR-4
1 parent 386f733 commit 5ce25ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/Debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ private function getClassCandidates($class)
132132
*/
133133
private function findClassInPath($path, $class, $prefix)
134134
{
135-
if (!$path = realpath($path)) {
135+
if ($subPath = realpath($path.'/'.strtr($prefix, '\\', '/'))) {
136+
$path = $subPath;
137+
} elseif (!$path = realpath($path)) {
136138
return array();
137139
}
138140

0 commit comments

Comments
 (0)
0