This commit is contained in:
nuno maduro
2026-08-07 01:41:32 +01:00
parent cc7acfe485
commit 37bdf60a1c
6 changed files with 53 additions and 16 deletions
+1 -7
View File
@@ -2085,13 +2085,7 @@ final class Tia implements AddsOutput, HandlesArguments, HandlesOriginalArgument
}
}
foreach ($testPaths as $testPath) {
if (str_starts_with($testPath, $candidate.DIRECTORY_SEPARATOR)) {
return false;
}
}
return true;
return array_all($testPaths, fn (string $testPath): bool => ! str_starts_with($testPath, $candidate.DIRECTORY_SEPARATOR));
}
private function resolveArgumentPath(string $arg, string $projectRoot): ?string
+8 -4
View File
@@ -1541,14 +1541,18 @@ final class Graph
foreach ($this->baselines[$branch]['results'] as $testId => $result) {
$file = $result['file'] ?? null;
if (! is_string($file) || $file === '') {
if (! is_string($file)) {
continue;
}
if ($file === '') {
continue;
}
$rel = $this->relative($file);
if ($rel === null || is_file($root.$rel)) {
if ($rel === null) {
continue;
}
if (is_file($root.$rel)) {
continue;
}