Make parameter types of HTTPHelper::withStatus() compatible with that of ResponseInterface

This commit is contained in:
Kijin Sung 2023-09-27 23:37:18 +09:00
parent b9068c56f7
commit bde78570f6

View file

@ -45,7 +45,7 @@ class HTTPHelper implements ResponseInterface
{ {
return $this->_error_message; return $this->_error_message;
} }
public function withStatus($code, $reasonPhrase = ''): ResponseInterface public function withStatus(int $code, string $reasonPhrase = ''): ResponseInterface
{ {
$new = clone $this; $new = clone $this;
$new->_error_message = $reasonPhrase; $new->_error_message = $reasonPhrase;