We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1390604 commit aa67c12Copy full SHA for aa67c12
src/FileSystem.php
@@ -95,8 +95,8 @@ public static function clearPharPath(string $path): string
95
if (strpos($path, 'phar://') === 0) {
96
$path = (string)substr($path, 7);
97
98
- if (strpos($path, '.phar')) {
99
- return preg_replace('//[\w-]+\.phar/', '', $path);
+ if (strpos($path, '.phar') > 0) {
+ return preg_replace('/\/[\w-]+\.phar/', '', $path);
100
}
101
102
0 commit comments