From ba4dd0e31af0730240a10992b69e04785d59d616 Mon Sep 17 00:00:00 2001 From: Emiel Bom <11626777+adm-bome@users.noreply.github.com> Date: Fri, 26 Jan 2024 13:15:46 +0100 Subject: [PATCH] Fix for errors on $currentJob property RabbitMQQueue::$currentJob must not be accessed before initialization Fixes for issue: #572 #555 --- src/Queue/RabbitMQQueue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Queue/RabbitMQQueue.php b/src/Queue/RabbitMQQueue.php index 0bf2e608..19c4efb2 100644 --- a/src/Queue/RabbitMQQueue.php +++ b/src/Queue/RabbitMQQueue.php @@ -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