Skip to content

Commit

Permalink
Update RabbitQueue.php
Browse files Browse the repository at this point in the history
  • Loading branch information
iamfarhad authored Jan 1, 2023
1 parent d402f20 commit c9ab482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RabbitQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c9ab482

Please sign in to comment.