From 6cc48f63f80be6bf9e4ae5b513562eab2bf6d9e9 Mon Sep 17 00:00:00 2001 From: nuno maduro Date: Sun, 3 May 2026 13:06:24 -0300 Subject: [PATCH] chore: style --- src/Plugins/Tia/Graph.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; }