Skip to content

Commit

Permalink
Properly cleanup scanner data
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Aug 31, 2023
1 parent 3067615 commit 535f1b7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Psalm/Internal/Codebase/Scanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 535f1b7

Please sign in to comment.