diff --git a/src/Http/Message/FpmResponse.php b/src/Http/Message/FpmResponse.php index c630961..514084a 100644 --- a/src/Http/Message/FpmResponse.php +++ b/src/Http/Message/FpmResponse.php @@ -51,7 +51,7 @@ public function withCookie(string $key, string $value, int $expire = 0, string $ */ public function setCookie(string $key, string $value, int $expire = 0, string $path = '/', string $domain = '', bool $secure = false, bool $httponly = false): self { - parent::withCookie($key, $value, $expire, $path, $domain, $secure, $httponly); + parent::setCookie($key, $value, $expire, $path, $domain, $secure, $httponly); $this->changedCookieNames[$key] = true; return $this;