Skip to content

Commit

Permalink
explicit consumer nullable emptyHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Dec 20, 2024
1 parent 15ee420 commit aa2eccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Consumer/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit aa2eccf

Please sign in to comment.