From d5bac4d51d9dae580dc0846a219f84b42b1052f1 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 7 Dec 2023 12:46:34 +0100 Subject: [PATCH] Emit AfterCodebasePopulatedEvent even on partial scans --- src/Psalm/Internal/Analyzer/ProjectAnalyzer.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php b/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php index 3dd7a646038..ed22c279d97 100644 --- a/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php @@ -1065,6 +1065,10 @@ public function checkPaths(array $paths_to_check): void $this->config->visitStubFiles($this->codebase, $this->progress); + $event = new AfterCodebasePopulatedEvent($this->codebase); + + $this->config->eventDispatcher->dispatchAfterCodebasePopulated($event); + $this->progress->startAnalyzingFiles(); $this->codebase->analyzer->analyzeFiles(