Skip to content

Commit

Permalink
Merge branch refs/heads/1.11.x into 1.12.x
Browse files Browse the repository at this point in the history
  • Loading branch information
phpstan-bot authored Jul 14, 2024
2 parents 2049e0d + 7d3be58 commit 89636d6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Diagnose/PHPStanDiagnoseExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,12 @@ public function print(Output $output): void
}
$output->writeLineFormatted('');

$output->writeLineFormatted('<info>Discovered Composer project roots:</info>');
if (count($this->composerAutoloaderProjectPaths) === 0) {
$composerAutoloaderProjectPathsCount = count($this->composerAutoloaderProjectPaths);
$output->writeLineFormatted(sprintf(
'<info>Discovered Composer project %s:</info>',
$composerAutoloaderProjectPathsCount === 1 ? 'root' : 'roots',
));
if ($composerAutoloaderProjectPathsCount === 0) {
$output->writeLineFormatted('None');
}
foreach ($this->composerAutoloaderProjectPaths as $composerAutoloaderProjectPath) {
Expand Down

0 comments on commit 89636d6

Please sign in to comment.