diff --git a/src/Plugins/Tia/Graph.php b/src/Plugins/Tia/Graph.php index a91dc919..415e5291 100644 --- a/src/Plugins/Tia/Graph.php +++ b/src/Plugins/Tia/Graph.php @@ -1326,7 +1326,7 @@ final class Graph * test IDs are no longer present (e.g. the test method was removed or renamed). * * @param array $touchedFiles Absolute or project-relative paths. - * @param array $keepTestIds Test IDs that produced a result this run. + * @param array $keepTestIds Test IDs that produced a result this run. */ public function pruneStaleResults(string $branch, array $touchedFiles, array $keepTestIds): void { @@ -1351,8 +1351,10 @@ final class Graph foreach ($this->baselines[$branch]['results'] as $testId => $result) { $file = $result['file'] ?? null; - - if (! is_string($file) || ! isset($touched[$file])) { + if (! is_string($file)) { + continue; + } + if (! isset($touched[$file])) { continue; }