Skip to content

Commit

Permalink
Fix undefined variable error for id (#34878)
Browse files Browse the repository at this point in the history
  • Loading branch information
canvural committed Oct 19, 2020
1 parent f857dd2 commit 0e33004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Console/RetryBatchCommand.php
Expand Up @@ -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}].");
Expand Down

0 comments on commit 0e33004

Please sign in to comment.