Skip to content

Commit f195703

Browse files
authored
Merge pull request #38 from edricwilliem/master
Fix QueryJobSubscribe if JobInstance is null
2 parents 42b9788 + e004b9e commit f195703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Listeners/QueueJobSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function startQueueJobSpan(JobProcessing $event)
7070
/** @var mixed $jobInstance */
7171
$jobInstance = unserialize(Arr::get($job->payload(), 'data.command'));
7272

73-
if (in_array(ShouldBeTraced::class, class_implements($jobInstance))) {
73+
if ($jobInstance && in_array(ShouldBeTraced::class, class_implements($jobInstance))) {
7474
$jobInput = $this->retrieveQueueJobInput($jobInstance);
7575

7676
/** @var Span $span */

0 commit comments

Comments
 (0)