Skip to content

Commit

Permalink
Merge branch '6.3' into 6.4
Browse files Browse the repository at this point in the history
* 6.3:
  [AssetMapper] Handle assets with non-ascii characters in dev server
  [Translation] Fix `TranslationNodeVisitor` with constant domain
  [Messenger] [AMQP] Throw exception on `nack` callback
  [Validator] revise Latvian translations
  [ErrorHandler] Fix `RecursiveDirectoryIterator` exception with wrong composer autoload
  [HttpFoundation] Request without content-type or content-length header should result in null values, not empty strings
  [Cache] Fix possible infinite loop in `CachePoolPass`
  grab a service from the container only if it exists
  [Mime] Fix undefined array key 0 when empty sender
  [Console] Allow '0' as a $shortcut in InputOption.php
  fix multi-byte code area to convert
  [Validator] Make it explicit when English translation differs from its resource name
  • Loading branch information
nicolas-grekas committed Jan 23, 2024
2 parents 6d0565b + c1781bd commit 1218c41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Transport/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

use Symfony\Component\Messenger\Exception\InvalidArgumentException;
use Symfony\Component\Messenger\Exception\LogicException;
use Symfony\Component\Messenger\Exception\TransportException;

/**
* An AMQP connection.
Expand Down Expand Up @@ -493,7 +494,7 @@ public function channel(): \AMQPChannel
$this->amqpChannel->confirmSelect();
$this->amqpChannel->setConfirmCallback(
static fn (): bool => false,
static fn (): bool => false
static fn () => throw new TransportException('Message publication failed due to a negative acknowledgment (nack) from the broker.'),
);
}

Expand Down

0 comments on commit 1218c41

Please sign in to comment.