From bde78570f6fc6ba29d35e11c0f172bc1e85b957b Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Wed, 27 Sep 2023 23:37:18 +0900 Subject: [PATCH] Make parameter types of HTTPHelper::withStatus() compatible with that of ResponseInterface --- common/framework/helpers/HTTPHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/framework/helpers/HTTPHelper.php b/common/framework/helpers/HTTPHelper.php index 6770e9355..e6719ac79 100644 --- a/common/framework/helpers/HTTPHelper.php +++ b/common/framework/helpers/HTTPHelper.php @@ -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;