mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +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;
|
||||
}
|
||||
public function withStatus($code, $reasonPhrase = ''): ResponseInterface
|
||||
public function withStatus(int $code, string $reasonPhrase = ''): ResponseInterface
|
||||
{
|
||||
$new = clone $this;
|
||||
$new->_error_message = $reasonPhrase;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue