Skip to content

Commit f16d85a

Browse files
committed
Revert "Fix composer autoloader project path"
This reverts commit 8fad6d5.
1 parent 062d8a0 commit f16d85a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

bin/phpstan

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,7 @@ use Symfony\Component\Console\Helper\ProgressBar;
9393
}
9494

9595
$autoloadProjectAutoloaderFile = function (string $file) use (&$composerAutoloaderProjectPaths): void {
96-
$path = realpath(dirname(__DIR__) . $file);
97-
if ($path === false) {
98-
return;
99-
}
100-
96+
$path = dirname(__DIR__) . $file;
10197
if (!extension_loaded('phar')) {
10298
if (@is_file($path)) {
10399
$composerAutoloaderProjectPaths[] = dirname($path, 2);
@@ -113,8 +109,8 @@ use Symfony\Component\Console\Helper\ProgressBar;
113109
require_once $path;
114110
}
115111
} else {
116-
$path = realpath(dirname($pharPath) . $file);
117-
if ($path !== false && @is_file($path)) {
112+
$path = dirname($pharPath) . $file;
113+
if (@is_file($path)) {
118114
$composerAutoloaderProjectPaths[] = dirname($path, 2);
119115

120116
require_once $path;

0 commit comments

Comments
 (0)