Skip to content

Commit 9d69dd6

Browse files
committed
[Messenger] Add forward compatibily with php-amqp v2
see php-amqp/php-amqp#424 (comment)
1 parent 6343af9 commit 9d69dd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)