Skip to content

Commit 8b174dd

Browse files
authored
Implement what the comment says (#682)
Addresses #511
1 parent d4d8c09 commit 8b174dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Domain/Runner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ private function processFile(SplFileInfo $file): void
187187
{
188188
$cacheKey = 'insights.' . $this->cacheKey . '.' . md5($file->getContents());
189189
// Do not use cache if fix is enabled to force processors to handle it
190-
if (! $this->cache->has($cacheKey)) {
190+
if ($this->configuration->hasFixEnabled() && ! $this->cache->has($cacheKey)) {
191191
throw new \LogicException('Unable to find data for ' . $file->getPathname());
192192
}
193193

0 commit comments

Comments
 (0)