diff --git a/src/Psalm/Internal/Codebase/Scanner.php b/src/Psalm/Internal/Codebase/Scanner.php index a53a5ab8c88..8e6675dab80 100644 --- a/src/Psalm/Internal/Codebase/Scanner.php +++ b/src/Psalm/Internal/Codebase/Scanner.php @@ -710,6 +710,15 @@ public function addThreadData(array $thread_data): void public function isForked(): void { + $this->files_to_scan = []; + $this->files_to_deep_scan = []; + $this->classes_to_scan = []; + $this->classes_to_deep_scan = []; + $this->store_scan_failure = []; + $this->classlike_files = []; + $this->deep_scanned_classlike_files = []; + $this->scanned_files = []; + $this->reflected_classlikes_lc = []; $this->is_forked = true; }