From 7df9ee4e31be9acd8c72467ea9d2cdf2cc2f0777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20Lacina?= Date: Thu, 12 Mar 2026 20:14:53 +0100 Subject: [PATCH] IResponse: add missing $sameSite parameter to setCookie() - The concrete Response::setCookie() already accepts ?string $sameSite as the 8th parameter, but the IResponse interface is missing it. This makes it impossible to set the SameSite attribute when working with the interface without suppressing static analysis errors. Co-Authored-By: Claude Opus 4.6 --- src/Http/IResponse.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Http/IResponse.php b/src/Http/IResponse.php index 800e1c8e..94b75d38 100644 --- a/src/Http/IResponse.php +++ b/src/Http/IResponse.php @@ -402,6 +402,7 @@ function setCookie( ?string $domain = null, ?bool $secure = null, ?bool $httpOnly = null, + ?string $sameSite = null, ); /**