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); }