Skip to content

Commit a4fef66

Browse files
authored
Cannot realpath phar paths (#155)
1 parent febeb01 commit a4fef66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Excluder/TestsUsageExcluder.php

+4
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ private function extractAutoloadPaths(string $basePath, array $autoload): array
209209

210210
private function realpath(string $path): string
211211
{
212+
if (strpos($path, 'phar://') === 0) {
213+
return $path;
214+
}
215+
212216
$realPath = realpath($path);
213217

214218
if ($realPath === false) {

0 commit comments

Comments
 (0)