1
This commit is contained in:
@@ -27,7 +27,7 @@ interface ResponseInterface extends MessageInterface
|
||||
*
|
||||
* @return int Status code.
|
||||
*/
|
||||
public function getStatusCode();
|
||||
public function getStatusCode(): int;
|
||||
|
||||
/**
|
||||
* Return an instance with the specified status code and, optionally, reason phrase.
|
||||
@@ -49,7 +49,7 @@ interface ResponseInterface extends MessageInterface
|
||||
* @return static
|
||||
* @throws \InvalidArgumentException For invalid status code arguments.
|
||||
*/
|
||||
public function withStatus($code, $reasonPhrase = '');
|
||||
public function withStatus(int $code, string $reasonPhrase = ''): ResponseInterface;
|
||||
|
||||
/**
|
||||
* Gets the response reason phrase associated with the status code.
|
||||
@@ -64,5 +64,5 @@ interface ResponseInterface extends MessageInterface
|
||||
* @link http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
|
||||
* @return string Reason phrase; must return an empty string if none present.
|
||||
*/
|
||||
public function getReasonPhrase();
|
||||
public function getReasonPhrase(): string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user