diff --git a/src/Illuminate/Queue/Console/ClearCommand.php b/src/Illuminate/Queue/Console/ClearCommand.php index 33c10b40b14e..6f3e8dc3bf9d 100644 --- a/src/Illuminate/Queue/Console/ClearCommand.php +++ b/src/Illuminate/Queue/Console/ClearCommand.php @@ -5,6 +5,7 @@ use Illuminate\Console\Command; use Illuminate\Console\ConfirmableTrait; use Illuminate\Contracts\Queue\ClearableQueue; +use Illuminate\Support\Str; use ReflectionClass; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Input\InputArgument; @@ -53,7 +54,7 @@ public function handle() if ($queue instanceof ClearableQueue) { $count = $queue->clear($queueName); - $this->components->info('Cleared '.$count.' jobs from the ['.$queueName.'] queue'); + $this->components->info('Cleared '.$count.' '.Str::plural('job', $count).' from the ['.$queueName.'] queue'); } else { $this->components->error('Clearing queues is not supported on ['.(new ReflectionClass($queue))->getShortName().']'); }