8000 minor #51168 [Messenger] Add forward compatibily with php-amqp v2 (ly… · Wink-dev/symfony@2f1ba4c · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f1ba4c

Browse files
committed
minor symfony#51168 [Messenger] Add forward compatibily with php-amqp v2 (lyrixx)
This PR was merged into the 5.4 branch. Discussion ---------- [Messenger] Add forward compatibily with php-amqp v2 | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | see php-amqp/php-amqp#424 (comment) Commits ------- 9593910 [Messenger] Add forward compatibily with php-amqp v2
2 parents a918ea5 + 9593910 commit 2f1ba4c

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
@@ -456,7 +456,7 @@ public function get(string $queueName): ?\AMQPEnvelope
456456

457457
public function ack(\AMQPEnvelope $message, string $queueName): bool
458458
{
459-
return $this->queue($queueName)->ack($message->getDeliveryTag());
459+
return $this->queue($queueName)->ack($message->getDeliveryTag()) ?? true;
460460
}
461461

462462
public function nack(\AMQPEnvelope $message, string $queueName, int $flags = \AMQP_NOPARAM): bool

0 commit comments

Comments
 (0)
0