diff --git a/pkg/amqp-ext/AmqpSubscriptionConsumer.php b/pkg/amqp-ext/AmqpSubscriptionConsumer.php index 08a3df1c6..ae74704fd 100644 --- a/pkg/amqp-ext/AmqpSubscriptionConsumer.php +++ b/pkg/amqp-ext/AmqpSubscriptionConsumer.php @@ -96,7 +96,7 @@ public function subscribe(Consumer $consumer, callable $callback): void $extQueue = new \AMQPQueue($this->context->getExtChannel()); $extQueue->setName($consumer->getQueue()->getQueueName()); - $extQueue->consume(null, Flags::convertConsumerFlags($consumer->getFlags()), $consumer->getConsumerTag()); + $extQueue->consume(null, Flags::convertConsumerFlags($consumer->getFlags()), $consumer->getConsumerTag() ?? ''); $consumerTag = $extQueue->getConsumerTag(); $consumer->setConsumerTag($consumerTag);