From 073402ff9aad692034ea97e2c2b07c999ee9fe4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 10 Sep 2021 10:14:23 +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-message/ServerRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http-message/ServerRequest.php b/http-message/ServerRequest.php index 7e8f04bb..5d7922d0 100644 --- a/http-message/ServerRequest.php +++ b/http-message/ServerRequest.php @@ -113,10 +113,10 @@ class ServerRequest extends Request implements ServerRequestInterface /** - * @param array $cookies + * @param array|null $cookies * @return $this|ServerRequest */ - public function withCookieParams(array $cookies): ServerRequestInterface + public function withCookieParams(?array $cookies): ServerRequestInterface { $this->cookieParams = $cookies; return $this;