diff --git a/src/Illuminate/Queue/Console/RetryBatchCommand.php b/src/Illuminate/Queue/Console/RetryBatchCommand.php index b6d5f6e7b7ef..828278a48b92 100644 --- a/src/Illuminate/Queue/Console/RetryBatchCommand.php +++ b/src/Illuminate/Queue/Console/RetryBatchCommand.php @@ -28,7 +28,7 @@ class RetryBatchCommand extends Command */ public function handle() { - $batch = $this->laravel[BatchRepository::class]->find($this->argument('id')); + $batch = $this->laravel[BatchRepository::class]->find($id = $this->argument('id')); if (! $batch) { $this->error("Unable to find a batch with ID [{$id}].");