$this
\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 StreamedResponse instance.'); } $this->streamed = true; return $this; }