src/Serializer/PhpArraySerializer.php
public function serialize(Message $message, array $options = [])
    {
        $this->options = $options;
        return $this->doSerialize($message);
    }
public function serialize(Message $message, array $options = [])
    {
        $this->options = $options;
        return $this->doSerialize($message);
    }
{@inheritdoc}