diff --git a/src/Domain/Runner.php b/src/Domain/Runner.php index 94a11a6c..a1f6b0dc 100644 --- a/src/Domain/Runner.php +++ b/src/Domain/Runner.php @@ -187,7 +187,7 @@ private function processFile(SplFileInfo $file): void { $cacheKey = 'insights.' . $this->cacheKey . '.' . md5($file->getContents()); // Do not use cache if fix is enabled to force processors to handle it - if (! $this->cache->has($cacheKey)) { + if ($this->configuration->hasFixEnabled() && ! $this->cache->has($cacheKey)) { throw new \LogicException('Unable to find data for ' . $file->getPathname()); }