Skip to content

Commit ba4dd0e

Browse files
authored
Fix for errors on $currentJob property
RabbitMQQueue::$currentJob must not be accessed before initialization Fixes for issue: vyuldashev#572 vyuldashev#555
1 parent 03e1051 commit ba4dd0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Queue/RabbitMQQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class RabbitMQQueue extends Queue implements QueueContract, RabbitMQQueueContrac
5454
/**
5555
* Current job being processed.
5656
*/
57-
protected RabbitMQJob $currentJob;
57+
protected ?RabbitMQJob $currentJob = null;
5858

5959
/**
6060
* Holds the Configuration

0 commit comments

Comments
 (0)