Skip to content

Commit 762277e

Browse files
committed
Result cache - do not save with non-ignorable errors
1 parent 7615022 commit 762277e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Analyser/ResultCache/ResultCacheManager.php

+10
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,16 @@ public function process(AnalyserResult $analyserResult, ResultCache $resultCache
187187
return;
188188
}
189189

190+
foreach ($errorsByFile as $errors) {
191+
foreach ($errors as $error) {
192+
if ($error->canBeIgnored()) {
193+
continue;
194+
}
195+
196+
return;
197+
}
198+
}
199+
190200
$this->save($resultCache->getLastFullAnalysisTime(), $errorsByFile, $dependencies);
191201
};
192202

0 commit comments

Comments
 (0)