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