Skip to content

Commit

Permalink
Cast json decoded failed_job_ids to array (#46329)
Browse files Browse the repository at this point in the history
  • Loading branch information
naciriii authored Mar 2, 2023
1 parent ead80a4 commit 8ba64e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Bus/DatabaseBatchRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ protected function toBatch($batch)
(int) $batch->total_jobs,
(int) $batch->pending_jobs,
(int) $batch->failed_jobs,
json_decode($batch->failed_job_ids, true),
(array) json_decode($batch->failed_job_ids, true),
$this->unserialize($batch->options),
CarbonImmutable::createFromTimestamp($batch->created_at),
$batch->cancelled_at ? CarbonImmutable::createFromTimestamp($batch->cancelled_at) : $batch->cancelled_at,
Expand Down

0 comments on commit 8ba64e6

Please sign in to comment.