diff --git a/src/Diagnose/PHPStanDiagnoseExtension.php b/src/Diagnose/PHPStanDiagnoseExtension.php index 000f9aa0da..7a8df87f51 100644 --- a/src/Diagnose/PHPStanDiagnoseExtension.php +++ b/src/Diagnose/PHPStanDiagnoseExtension.php @@ -72,6 +72,9 @@ public function print(Output $output): void $output->writeLineFormatted(''); $output->writeLineFormatted('Discovered Composer project roots:'); + if (count($this->composerAutoloaderProjectPaths) === 0) { + $output->writeLineFormatted('None'); + } foreach ($this->composerAutoloaderProjectPaths as $composerAutoloaderProjectPath) { $output->writeLineFormatted($composerAutoloaderProjectPath); }