From 9d678505f4157244a5fdeac52ac92b42d7750632 Mon Sep 17 00:00:00 2001 From: Greg Korba Date: Wed, 14 Feb 2024 14:41:23 +0100 Subject: [PATCH] Do not produce notice/warning when consuming from multiple transports and explicitly listed queues These queues might not be present on each consumed transport. --- .../Component/Messenger/Bridge/Amqp/Transport/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Messenger/Bridge/Amqp/Transport/Connection.php b/src/Symfony/Component/Messenger/Bridge/Amqp/Transport/Connection.php index b0c9fe46f59c3..3ea7784d862fd 100644 --- a/src/Symfony/Component/Messenger/Bridge/Amqp/Transport/Connection.php +++ b/src/Symfony/Component/Messenger/Bridge/Amqp/Transport/Connection.php @@ -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);