Skip to content

Commit 4abf33b

Browse files
committed
feat(phar): fmt, skip global namespace
1 parent 4c589fe commit 4abf33b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/support/src/Filesystem/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ function read_symbolic_link(string $path): string
509509
*/
510510
function 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

packages/support/src/Path/functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)