This commit is contained in:
2021-08-04 15:00:49 +08:00
parent 6850b3af2e
commit 55213b7624
2 changed files with 84 additions and 89 deletions
+1 -5
View File
@@ -194,15 +194,11 @@ class Response extends HttpService
/**
* @param mixed $content
* @param int $statusCode
* @param null $format
* @return Response
*/
public function setContent(mixed $content, int $statusCode = 200, $format = null): static
public function setContent(mixed $content): static
{
$this->endData = $content;
$this->setStatusCode($statusCode);
$this->setFormat($format);
return $this;
}