Skip to content

Commit

Permalink
Do not produce notice/warning when consuming from multiple transports…
Browse files Browse the repository at this point in the history
… and explicitly listed queues

These queues might not be present on each consumed transport.
  • Loading branch information
Wirone authored and nicolas-grekas committed Feb 14, 2024
1 parent 41d9dad commit 456958e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Transport/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ static function () {
public function queue(string $queueName): \AMQPQueue
{
if (!isset($this->amqpQueues[$queueName])) {
$queueConfig = $this->queuesOptions[$queueName];
$queueConfig = $this->queuesOptions[$queueName] ?? [];

$amqpQueue = $this->amqpFactory->createQueue($this->channel());
$amqpQueue->setName($queueName);
Expand Down

0 comments on commit 456958e

Please sign in to comment.