From 52a85c0206a084d5ed34b5316c2999936ecc9930 Mon Sep 17 00:00:00 2001 From: Piotr Matras Date: Fri, 25 Apr 2025 16:08:40 +0200 Subject: [PATCH 1/2] PHP8.4 compatiblity --- Plugin/SwitchSameSite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugin/SwitchSameSite.php b/Plugin/SwitchSameSite.php index 40eb20d..e98cd0f 100644 --- a/Plugin/SwitchSameSite.php +++ b/Plugin/SwitchSameSite.php @@ -60,7 +60,7 @@ public function beforeSetPublicCookie( PhpCookieManager $subject, $name, $value, - PublicCookieMetadata $metadata = null + ?PublicCookieMetadata $metadata = null ) { if ($this->isAffectedKeys($name)) { $agent = $this->header->getHttpUserAgent(); From dca2a2ced998585a88ba72858b5a99268fff5fc1 Mon Sep 17 00:00:00 2001 From: Piotr Matras Date: Mon, 28 Apr 2025 10:14:34 +0200 Subject: [PATCH 2/2] Allow php84 in composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3c41371..4232b74 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ } ], "require": { - "php": "~7.4.0||~8.1.0||~8.2.0||~8.3.0", + "php": "~7.4.0||~8.1.0||~8.2.0||~8.3.0||~8.4.0", "magento/framework": "~102.0.6-p1||~103.0.1", "lib-libxml": "*" },