RawMessage $message:
Overrides Constraint::matches
protected function matches($message) : bool { if (RawMessage::class === $message::class) { throw new \LogicException('Unable to test a message header on a RawMessage instance.'); } return $this->expectedValue === $this->getHeaderValue($message); }