Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1a2eb14

Browse files
committed
bug #51328 [Messenger] Always return bool from messenger amqp connection nack (Danielss89)
This PR was merged into the 5.4 branch. Discussion ---------- [Messenger] Always return bool from messenger amqp connection nack | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | no | License | MIT This PR fixes the nack method return value of amqp connection. With php-amqp 2 it needs to be a boolean. Another PR fixed the ack method. Commits ------- 33f5156 Always return bool from messenger amqp conncetion nack
2 parents 3f43534 + 33f5156 commit 1a2eb14

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
@@ -461,7 +461,7 @@ public function ack(\AMQPEnvelope $message, string $queueName): bool
461461

462462
public function nack(\AMQPEnvelope $message, string $queueName, int $flags = \AMQP_NOPARAM): bool
463463
{
464-
return $this->queue($queueName)->nack($message->getDeliveryTag(), $flags);
464+
return $this->queue($queueName)->nack($message->getDeliveryTag(), $flags) ?? true;
465465
}
466466

467467
public function setup(): void

0 commit comments

Comments
 (0)