8000 Do not produce notice/warning when consuming from multiple transports… · symfony/symfony@9d67850 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9d67850

Browse files
Wironenicolas-grekas
authored andcommitted
Do not produce notice/warning when consuming from multiple transports and explicitly listed queues
These queues might not be present on each consumed transport.
1 parent 0984e3b commit 9d67850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/Bridge/Amqp/Transport/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ static function () {
535535
public function queue(string $queueName): \AMQPQueue
536536
{
537537
if (!isset($this->amqpQueues[$queueName])) {
538-
$queueConfig = $this->queuesOptions[$queueName];
538+
$queueConfig = $this->queuesOptions[$queueName] ?? [];
539539

540540
$amqpQueue = $this->amqpFactory->createQueue($this->channel());
541541
$amqpQueue->setName($queueName);

0 commit comments

Comments
 (0)
0