8000 Always return bool from messenger amqp conncetion nack · PhilETaylor/symfony@33f5156 · GitHub
[go: up one dir, main page]

Skip to content

Commit 33f5156

Browse files
authored
Always return bool from messenger amqp conncetion nack
1 parent 3579d24 commit 33f5156

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)
0