From 92e16e0de666c009b12bbab8a88148ade1901242 Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Fri, 13 Mar 2026 14:05:20 +0100 Subject: [PATCH 1/7] update license year --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index bfcf021..2013f40 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2025 odan +Copyright (c) 2026 odan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From c9fd31bd96f5a90e22bf602da768f83c6b3f0d82 Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Fri, 13 Mar 2026 14:06:51 +0100 Subject: [PATCH 2/7] add PHP 8.5, drop PHP 8.1 --- .github/workflows/build.yml | 2 +- README.md | 2 +- composer.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b88998f..429673a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: operating-system: [ ubuntu-latest ] - php-versions: [ '8.1', '8.2', '8.3', '8.4' ] + php-versions: [ '8.2', '8.3', '8.4', '8.5' ] name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} steps: diff --git a/README.md b/README.md index e1552ac..f97b58c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ A PSR-15 middleware to secure your site with SameSite cookies :cookie: ## Requirements -* PHP 8.1 - 8.4 +* PHP 8.2 - 8.5 ## Installation diff --git a/composer.json b/composer.json index 4cb5279..4a790ff 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ ], "homepage": "https://github.com/selective-php/samesite-cookie", "require": { - "php": "8.1.* || 8.2.* || 8.3.* || 8.4.*", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0", "psr/http-message": "^1", "psr/http-server-handler": "^1", "psr/http-server-middleware": "^1" From 30a3097af0de5579a61f716806fd696adbcd9e1f Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Fri, 13 Mar 2026 14:07:43 +0100 Subject: [PATCH 3/7] update psr/http-message from ^1 to ^2 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4a790ff..05c4f59 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "homepage": "https://github.com/selective-php/samesite-cookie", "require": { "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0", - "psr/http-message": "^1", + "psr/http-message": "^2", "psr/http-server-handler": "^1", "psr/http-server-middleware": "^1" }, From fa5c0b71addb79b468d6c06fff9bf20fb955620c Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Fri, 13 Mar 2026 14:08:14 +0100 Subject: [PATCH 4/7] drop middlewares/utils ^3 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 05c4f59..2e0278c 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ }, "require-dev": { "friendsofphp/php-cs-fixer": "^3", - "middlewares/utils": "^3 || ^4", + "middlewares/utils": "^4", "phpstan/phpstan": "^1 || ^2", "phpunit/phpunit": "^10", "slim/psr7": "^1", From 06dda66dec6961e7ac5b58c27a2058297da3123c Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Fri, 13 Mar 2026 14:09:45 +0100 Subject: [PATCH 5/7] drop phpstan/phpstan ^1 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2e0278c..a709639 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "require-dev": { "friendsofphp/php-cs-fixer": "^3", "middlewares/utils": "^4", - "phpstan/phpstan": "^1 || ^2", + "phpstan/phpstan": "^2", "phpunit/phpunit": "^10", "slim/psr7": "^1", "squizlabs/php_codesniffer": "^3" From d6964618c58928ba07d2240adde804f7f3991f69 Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Fri, 13 Mar 2026 14:12:52 +0100 Subject: [PATCH 6/7] update squizlabs/php_codesniffer from ^3 to ^4 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a709639..029f8e8 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "phpstan/phpstan": "^2", "phpunit/phpunit": "^10", "slim/psr7": "^1", - "squizlabs/php_codesniffer": "^3" + "squizlabs/php_codesniffer": "^4" }, "autoload": { "psr-4": { From 833791d5a2fc81b65f95f0691d7d6dc2737505a8 Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Fri, 13 Mar 2026 14:14:50 +0100 Subject: [PATCH 7/7] Upgrade of PHPUnit from ^10 to ^11 --- composer.json | 2 +- phpunit.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 029f8e8..aa75e93 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "friendsofphp/php-cs-fixer": "^3", "middlewares/utils": "^4", "phpstan/phpstan": "^2", - "phpunit/phpunit": "^10", + "phpunit/phpunit": "^11", "slim/psr7": "^1", "squizlabs/php_codesniffer": "^4" }, diff --git a/phpunit.xml b/phpunit.xml index 2927473..7b7ad74 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -3,7 +3,7 @@ bootstrap="vendor/autoload.php" colors="true" backupGlobals="false" - xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd" + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">