From 16da8474e9bd97dac000ea12701e67722cf6fd84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 16 Apr 2023 13:53:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Response.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Response.php b/src/Response.php index 98bcd9a..f87b087 100644 --- a/src/Response.php +++ b/src/Response.php @@ -24,8 +24,7 @@ class Response implements ResponseInterface */ public function withContentType(ContentType $contentType): static { - $this->contentType = $contentType; - return $this; + return $this->__call__(__FUNCTION__, $contentType); }