From aa2eccf00639ab46a5e8a1119ab1d897cdca5521 Mon Sep 17 00:00:00 2001 From: dmitry krokhin Date: Fri, 20 Dec 2024 19:20:04 +0300 Subject: [PATCH] explicit consumer nullable emptyHandler --- src/Consumer/Consumer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Consumer/Consumer.php b/src/Consumer/Consumer.php index 34020a8..2a03685 100644 --- a/src/Consumer/Consumer.php +++ b/src/Consumer/Consumer.php @@ -126,7 +126,7 @@ public function getQueue(): Queue return $queue; } - public function handle(Closure $messageHandler, Closure $emptyHandler = null, bool $ack = true): int + public function handle(Closure $messageHandler, ?Closure $emptyHandler = null, bool $ack = true): int { $queue = $this->create()->getQueue(); $iterations = $this->getIterations();