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

Skip to content

Commit d202675

Browse files
committed
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 9f692c6 commit d202675

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
@@ -510,7 +510,7 @@ public function channel(): \AMQPChannel
510510
public function queue(string $queueName): \AMQPQueue
511511
{
512512
if (!isset($this->amqpQueues[$queueName])) {
513-
$queueConfig = $this->queuesOptions[$queueName];
513+
$queueConfig = $this->queuesOptions[$queueName] ?? [];
514514

515515
$amqpQueue = $this->amqpFactory->createQueue($this->channel());
516516
$amqpQueue->setName($queueName);

0 commit comments

Comments
 (0)
0