In my messnger.yaml configuration there are "type: headers" settings that breaks the code. If I cnage it to "direct" everything works fine. My php code is here:
$message = new OrderMessage(['a' => 'b']);
$this->messageBus->dispatch($message, [
new AmqpStamp(null, AMQP_NOPARAM, [
'content_type' => 'orderTransport',
]),
new TransportNamesStamp('simplest_transport'),
]);
Php reaches this place fine and don't throw any error.
I tried to change flag from AMQP_NOPARAM to AMQP_EX_TYPE_HEADERS but that doesn't work