From f4aef37ae561aff7c32eff1235600f6fbd031f1f Mon Sep 17 00:00:00 2001 From: robchett Date: Thu, 9 Nov 2023 09:24:46 +0000 Subject: [PATCH] A segment of progress was being output early as the startScanningFiles() method was not called before actually starting to scan files --- src/Psalm/Internal/Analyzer/ProjectAnalyzer.php | 6 +++--- src/Psalm/Progress/LongProgress.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php b/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php index 2999499f382..a5eb0f00c9c 100644 --- a/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php @@ -1050,6 +1050,9 @@ public function checkFile(string $file_path): void */ public function checkPaths(array $paths_to_check): void { + $this->progress->write($this->generatePHPVersionMessage()); + $this->progress->startScanningFiles(); + $this->config->visitPreloadedStubFiles($this->codebase, $this->progress); $this->visitAutoloadFiles(); @@ -1069,9 +1072,6 @@ public function checkPaths(array $paths_to_check): void $this->file_reference_provider->loadReferenceCache(); - $this->progress->write($this->generatePHPVersionMessage()); - $this->progress->startScanningFiles(); - $this->config->initializePlugins($this); diff --git a/src/Psalm/Progress/LongProgress.php b/src/Psalm/Progress/LongProgress.php index 5a58886c4b0..4f7044d7275 100644 --- a/src/Psalm/Progress/LongProgress.php +++ b/src/Psalm/Progress/LongProgress.php @@ -25,7 +25,7 @@ class LongProgress extends Progress protected bool $print_infos = false; - protected bool $fixed_size = true; + protected bool $fixed_size = false; public function __construct(bool $print_errors = true, bool $print_infos = true) {