From 689fd093588daca5ffef483c0f8af128df7d465a Mon Sep 17 00:00:00 2001 From: whwyy Date: Fri, 10 Jul 2026 17:03:41 +0800 Subject: [PATCH] Add scanner manifest replay control --- Scanner.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); }