File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -509,7 +509,7 @@ function read_symbolic_link(string $path): string
509509 */
510510function real_path (string $ path ): ?string
511511{
512- if (\ class_exists (\Phar::class) && \Phar::running (false ) !== '' && \ str_starts_with ($ path , 'phar: ' )) {
512+ if (class_exists (\Phar::class) && \Phar::running (false ) !== '' && str_starts_with ($ path , 'phar: ' )) {
513513 return $ path ;
514514 }
515515
Original file line number Diff line number Diff line change @@ -147,8 +147,8 @@ function normalize(null|Stringable|string ...$paths): string
147147 }
148148
149149 // Restore virtual phar prefix
150- if (\ str_starts_with ($ path , 'phar: ' )) {
151- $ path = \ str_replace ('phar: ' , 'phar:// ' , $ path );
150+ if (str_starts_with ($ path , 'phar: ' )) {
151+ $ path = str_replace ('phar: ' , 'phar:// ' , $ path );
152152 }
153153
154154 return $ path ;
You can’t perform that action at this time.
0 commit comments