From f10713647077c9cd7251f054458f0d53e8f465d8 Mon Sep 17 00:00:00 2001 From: Jesse Donat Date: Fri, 22 Aug 2025 17:07:18 -0500 Subject: [PATCH 1/5] Update phpstan version to ^2.1.18 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7986ec2..3c89f2a 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "friendsofphp/php-cs-fixer": "^3.4", "donatj/mddoc": "^0.10.1", "donatj/drop": "^1.1", - "phpstan/phpstan": "^1.12" + "phpstan/phpstan": "^2.1.18" }, "license": "MIT", "authors": [ From 6116edaeaac2b56029abf54e753a124fe657b5e6 Mon Sep 17 00:00:00 2001 From: Jesse Donat Date: Fri, 22 Aug 2025 17:08:30 -0500 Subject: [PATCH 2/5] Update CI workflow to exclude PHP 7.3 Removed PHP 7.3 from the CI workflow matrix. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f42158..bf82b4e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: operating-system: [ ubuntu-latest ] - php-versions: [ '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ] + php-versions: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ] psr-http-versions: [ '~1.0.0', '^1', '^2' ] exclude: - php-versions: '7.3' From fc0a2a3ed9d509bd536eb7d1f62a2a6ee1b633e3 Mon Sep 17 00:00:00 2001 From: Jesse Donat Date: Fri, 22 Aug 2025 17:09:05 -0500 Subject: [PATCH 3/5] Update PHP version requirement to 7.4 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3c89f2a..2a9d368 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "library", "require": { "psr/http-message": "^1 || ^2", - "php": ">=7.3" + "php": ">=7.4" }, "require-dev": { "phpunit/phpunit": "^9.6.19", From e3587c763b559a68dbf00cd6c84370bd9c5183f7 Mon Sep 17 00:00:00 2001 From: Jesse Donat Date: Mon, 25 Aug 2025 15:02:24 -0500 Subject: [PATCH 4/5] Correct $_SERVER definition in ProxyAwareSchemer --- src/ProxyAwareSchemer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProxyAwareSchemer.php b/src/ProxyAwareSchemer.php index 3f93e7e..6373e2d 100644 --- a/src/ProxyAwareSchemer.php +++ b/src/ProxyAwareSchemer.php @@ -46,7 +46,7 @@ class ProxyAwareSchemer { private $proxyServerPortKeys; /** - * @param array $server Server array to inspect. Defaults to $_SERVER. + * @param array $server Server array to inspect. Defaults to $_SERVER. * * @param array|null $proxyServerHttpsKeyValues Map of $_SERVER keys to their expected https-positive value. * Defaults to ProxyAwareSchemer::HTTPS_EXPECTED_SERVER_VALUES From 4feeee5ef467bafeeeac7edb7d32f9861d121345 Mon Sep 17 00:00:00 2001 From: Jesse Donat Date: Mon, 25 Aug 2025 15:04:10 -0500 Subject: [PATCH 5/5] Correct type hint from scalar to mixed for server array --- src/ProxyAwareSchemer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProxyAwareSchemer.php b/src/ProxyAwareSchemer.php index 6373e2d..099c9a8 100644 --- a/src/ProxyAwareSchemer.php +++ b/src/ProxyAwareSchemer.php @@ -20,7 +20,7 @@ */ class ProxyAwareSchemer { - /** @var array */ + /** @var array */ private $server; public const HTTPS_EXPECTED_SERVER_VALUES = [