Skip to content

Commit 7d3be58

Browse files
committed
Correct plural
1 parent 2dda2c7 commit 7d3be58

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Diagnose/PHPStanDiagnoseExtension.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,12 @@ public function print(Output $output): void
7171
}
7272
$output->writeLineFormatted('');
7373

74-
$output->writeLineFormatted('<info>Discovered Composer project roots:</info>');
75-
if (count($this->composerAutoloaderProjectPaths) === 0) {
74+
$composerAutoloaderProjectPathsCount = count($this->composerAutoloaderProjectPaths);
75+
$output->writeLineFormatted(sprintf(
76+
'<info>Discovered Composer project %s:</info>',
77+
$composerAutoloaderProjectPathsCount === 1 ? 'root' : 'roots',
78+
));
79+
if ($composerAutoloaderProjectPathsCount === 0) {
7680
$output->writeLineFormatted('None');
7781
}
7882
foreach ($this->composerAutoloaderProjectPaths as $composerAutoloaderProjectPath) {

0 commit comments

Comments
 (0)