From 6a667d9f461d5e83de6f365854135f352f491962 Mon Sep 17 00:00:00 2001 From: farhad zandmoghadam Date: Sun, 1 Jan 2023 21:07:55 +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 387e3da..62dcff1 100644 --- a/src/RabbitQueue.php +++ b/src/RabbitQueue.php @@ -400,7 +400,7 @@ private function createMessage($payload, int $attempts = 2): array ]; } - private function publishProperties(string $queue = '', array $options = []): array + private function publishProperties(?string $queue = '', array $options = []): array { $queue = $this->getQueue($queue); $attempts = Arr::get($options, 'attempts') ?: 0;