From c9ab482081d597cd4ac4b683bf12fbef94b0f6a5 Mon Sep 17 00:00:00 2001 From: farhad zandmoghadam Date: Mon, 2 Jan 2023 00:13:27 +0330 Subject: [PATCH] Update RabbitQueue.php --- src/RabbitQueue.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RabbitQueue.php b/src/RabbitQueue.php index 62dcff1..9310475 100644 --- a/src/RabbitQueue.php +++ b/src/RabbitQueue.php @@ -62,7 +62,7 @@ public function push($job, $data = '', $queue = null) /** * @throws JsonException */ - public function pushRaw($payload, $queue = null, array $options = []) + public function pushRaw($payload, $queue = '', array $options = []) { [$destination, $exchange, $exchangeType, $attempts] = $this->publishProperties($queue, $options); @@ -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;