mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
Make parameter types of HTTPHelper::withStatus() compatible with that of ResponseInterface
This commit is contained in:
parent
b9068c56f7
commit
bde78570f6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue