I think the return value is not mixed, but https://github.com/mnapoli/php-amqplib/blob/070b962e1e7224d34b0a8a6633c4da62f4007b00/PhpAmqpLib/Message/AMQPMessage.php