Skip to content

Commit

Permalink
Fix passing null (#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Apr 9, 2024
1 parent 5922e16 commit ae6bba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/FailedJobsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ protected function decode($job)

$job->exception = mb_convert_encoding($job->exception, 'UTF-8');

$job->context = json_decode($job->context);
$job->context = json_decode($job->context ?? '');

$job->retried_by = collect(! is_null($job->retried_by) ? json_decode($job->retried_by) : [])
->sortByDesc('retried_at')->values();
Expand Down

0 comments on commit ae6bba8

Please sign in to comment.