Skip to content

Commit 8ba64e6

Browse files
authored
Cast json decoded failed_job_ids to array (#46329)
1 parent ead80a4 commit 8ba64e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Bus/DatabaseBatchRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ protected function toBatch($batch)
357357
(int) $batch->total_jobs,
358358
(int) $batch->pending_jobs,
359359
(int) $batch->failed_jobs,
360-
json_decode($batch->failed_job_ids, true),
360+
(array) json_decode($batch->failed_job_ids, true),
361361
$this->unserialize($batch->options),
362362
CarbonImmutable::createFromTimestamp($batch->created_at),
363363
$batch->cancelled_at ? CarbonImmutable::createFromTimestamp($batch->cancelled_at) : $batch->cancelled_at,

0 commit comments

Comments
 (0)