I have multiple senders configured and everything was working fine until I updated to the latest messenger version.
After some debugging, I realized that the message is being enveloped more than once here.
I also noticed that the $message variable gets redefined here - it was originally an Envelope instance containing my original message under the message parameter and it becomes an instance of \Interop\Amqp\Impl\AmqpMessage, which gets enveloped and returned in the end of this method.
I have multiple senders configured and everything was working fine until I updated to the latest messenger version.
After some debugging, I realized that the message is being enveloped more than once here.
I also noticed that the
$message
variable gets redefined here - it was originally anEnvelope
instance containing my original message under themessage
parameter and it becomes an instance of\Interop\Amqp\Impl\AmqpMessage
, which gets enveloped and returned in the end of this method.It seems that the issue also started after this change on the MiddlewareInterface, as the
$envelope
variable now gets redefined after each iteration.