Skip to content

Commit fae8ce5

Browse files
Handle plural form on confirm message
1 parent b0dc860 commit fae8ce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/Command/FailedMessagesRemoveCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8383
throw new RuntimeException('No failed messages were found with this filter.');
8484
}
8585

86-
if (!$io->confirm(\sprintf('There is %d messages to remove. Do you want to continue?', $idsCount))) {
86+
if (!$io->confirm(\sprintf('There is %d message%s to remove. Do you want to continue?', $idsCount, $idsCount > 1 ? 's' : ''))) {
8787
return 0;
8888
}
8989
}

0 commit comments

Comments
 (0)