diff --git a/Scanner.php b/Scanner.php index 259a394..d7a6e5c 100644 --- a/Scanner.php +++ b/Scanner.php @@ -89,7 +89,7 @@ class Scanner extends Component return $this->changeSet; } - public function scanFiles(array $files, ?string $scopePath = null, ?string $cacheFile = null, bool $force = false): ChangeSet + public function scanFiles(array $files, ?string $scopePath = null, ?string $cacheFile = null, bool $force = false, bool $replayManifest = true): ChangeSet { $this->changeSet = new ChangeSet(); $this->visitedFiles = []; @@ -115,7 +115,7 @@ class Scanner extends Component $this->markRemovedFile($path); } - if ($cacheLoaded && $scopePath !== null) { + if ($replayManifest && $cacheLoaded && $scopePath !== null) { $this->replayManifest($scopePath, $this->changeSet->getChangedFiles()); }