From 0e33004fee1df5574bcc28ea95f2ada16f5ad8ae Mon Sep 17 00:00:00 2001 From: Can Vural Date: Mon, 19 Oct 2020 15:35:29 +0200 Subject: [PATCH] Fix undefined variable error for id (#34878) --- src/Illuminate/Queue/Console/RetryBatchCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}].");