File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -93,11 +93,7 @@ use Symfony\Component\Console\Helper\ProgressBar;
93
93
}
94
94
95
95
$ 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 ;
101
97
if (!extension_loaded ('phar ' )) {
102
98
if (@is_file ($ path )) {
103
99
$ composerAutoloaderProjectPaths [] = dirname ($ path , 2 );
@@ -113,8 +109,8 @@ use Symfony\Component\Console\Helper\ProgressBar;
113
109
require_once $ path ;
114
110
}
115
111
} else {
116
- $ path = realpath ( dirname ($ pharPath ) . $ file) ;
117
- if ($ path !== false && @is_file ($ path )) {
112
+ $ path = dirname ($ pharPath ) . $ file ;
113
+ if (@is_file ($ path )) {
118
114
$ composerAutoloaderProjectPaths [] = dirname ($ path , 2 );
119
115
120
116
require_once $ path ;
You can’t perform that action at this time.
0 commit comments