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