\LogicException when the content is not null
Overrides Response::setContent
public function setContent(?string $content) : static { if (null !== $content) { throw new \LogicException('The content cannot be set on a BinaryFileResponse instance.'); } return $this; }