From 8bf0417fe7de34be670265eb26f03de9bc1a1a86 Mon Sep 17 00:00:00 2001 From: farhad zandmoghadam Date: Mon, 2 Jan 2023 00:16:39 +0330 Subject: [PATCH] Update RabbitQueue.php --- src/RabbitQueue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RabbitQueue.php b/src/RabbitQueue.php index 9310475..f49e8c8 100644 --- a/src/RabbitQueue.php +++ b/src/RabbitQueue.php @@ -157,7 +157,7 @@ public function pop($queue = null) return null; } - public function getQueue(string $queue = null): string + public function getQueue(?string $queue = null): string { return $queue ?? $this->defaultQueue; }