Skip to content

Commit

Permalink
Fix undefined property error on lower php versions
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzipp committed Jul 13, 2024
1 parent bc680b1 commit 33de2c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Services/QueueMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ protected static function jobQueued(JobQueued $event): void

QueueMonitor::getModel()::query()->create([
'job_id' => $event->id,
'job_uuid' => $event->payload ? $event->payload()['uuid'] : $event->id,
/** @phpstan-ignore-next-line */
'job_uuid' => isset($event->payload) ? $event->payload()['uuid'] : $event->id,
'name' => get_class($event->job),
/** @phpstan-ignore-next-line */
'queue' => $event->job->queue ?: 'default',
Expand Down

0 comments on commit 33de2c3

Please sign in to comment.