Skip to content

Commit

Permalink
Fix for errors on $currentJob property
Browse files Browse the repository at this point in the history
RabbitMQQueue::$currentJob must not be accessed before initialization

Fixes for issue: #572 #555
  • Loading branch information
adm-bome authored Jan 26, 2024
1 parent 03e1051 commit ba4dd0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Queue/RabbitMQQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class RabbitMQQueue extends Queue implements QueueContract, RabbitMQQueueContrac
/**
* Current job being processed.
*/
protected RabbitMQJob $currentJob;
protected ?RabbitMQJob $currentJob = null;

/**
* Holds the Configuration
Expand Down

0 comments on commit ba4dd0e

Please sign in to comment.