From 1845ed252ddb63dd5c04b1600f9fc1dc7e2a9906 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Sun, 14 Jul 2024 14:18:35 +0200 Subject: [PATCH] Better output --- src/Diagnose/PHPStanDiagnoseExtension.php | 3 +++ 1 file changed, 3 insertions(+) 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); }