Fix docblock NO_CI

This commit is contained in:
Dennis Eichhorn 2021-04-22 15:40:41 +02:00 committed by GitHub
parent 0c93056d66
commit d03848cc3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ final class HttpResponse extends ResponseAbstract implements RenderableInterface
/** /**
* Generate response based on header. * Generate response based on header.
* *
* @param bool $optimize Optimize response / minify * @param mixed $data Data passt to render function. (0 => bool: $optimize
* *
* @return string * @return string
* *
@ -116,7 +116,7 @@ final class HttpResponse extends ResponseAbstract implements RenderableInterface
} }
} }
return $this->getRaw($data[0]); return $this->getRaw($data[0] ?? false);
} }
/** /**
@ -197,6 +197,15 @@ final class HttpResponse extends ResponseAbstract implements RenderableInterface
return $result; return $result;
} }
/**
* Ends the output buffering
*
* This is helpful in case the output buffering should be stopped for streamed/chunked responses (e.g. large data)
*
* @return void
*
* @since 1.0.0
*/
public function endAllOutputBuffering() : void public function endAllOutputBuffering() : void
{ {
$this->header->push(); $this->header->push();