Skip to content

Commit aa67c12

Browse files
committed
fix: clearPharPath regex error
1 parent 1390604 commit aa67c12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FileSystem.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ public static function clearPharPath(string $path): string
9595
if (strpos($path, 'phar://') === 0) {
9696
$path = (string)substr($path, 7);
9797

98-
if (strpos($path, '.phar')) {
99-
return preg_replace('//[\w-]+\.phar/', '', $path);
98+
if (strpos($path, '.phar') > 0) {
99+
return preg_replace('/\/[\w-]+\.phar/', '', $path);
100100
}
101101
}
102102

0 commit comments

Comments
 (0)