From edf5fdb7fcd9ce333d2f9ab22260968703d9da5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 9 Sep 2021 17:03:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http-server/Constrict/Response.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/http-server/Constrict/Response.php b/http-server/Constrict/Response.php index 219909c9..45827c66 100644 --- a/http-server/Constrict/Response.php +++ b/http-server/Constrict/Response.php @@ -253,30 +253,30 @@ class Response implements ResponseInterface /** - * @param string $value + * @param string|null $value * @return ResponseInterface */ - public function withAccessControlAllowOrigin(string $value): ResponseInterface + public function withAccessControlAllowOrigin(?string $value): ResponseInterface { return $this->__call__()->{__FUNCTION__}($value); } /** - * @param string $value + * @param string|null $value * @return ResponseInterface */ - public function withAccessControlRequestMethod(string $value): ResponseInterface + public function withAccessControlRequestMethod(?string $value): ResponseInterface { return $this->__call__()->{__FUNCTION__}($value); } /** - * @param string $value + * @param string|null $value * @return ResponseInterface */ - public function withAccessControlAllowHeaders(string $value): ResponseInterface + public function withAccessControlAllowHeaders(?string $value): ResponseInterface { return $this->__call__()->{__FUNCTION__}($value); }