From cf4c820b51249fbfea0ca2d2dfbf0f372a2a599c Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Mon, 22 Dec 2025 12:47:35 +0300 Subject: [PATCH 1/3] PHP 8.5 support --- .github/workflows/build.yml | 2 +- .github/workflows/composer-require-checker.yml | 2 +- CHANGELOG.md | 2 +- README.md | 2 +- composer.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ecc05eb..bb5da13 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,4 +32,4 @@ jobs: os: >- ['ubuntu-latest', 'windows-latest'] php: >- - ['8.1', '8.2', '8.3', '8.4'] + ['8.1', '8.2', '8.3', '8.4', '8.5'] diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml index a93390b..d2ef508 100644 --- a/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/composer-require-checker.yml @@ -31,4 +31,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.1', '8.2', '8.3', '8.4'] + ['8.1', '8.2', '8.3', '8.4', '8.5'] diff --git a/CHANGELOG.md b/CHANGELOG.md index feedf57..97f0882 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## 2.3.2 under development -- no changes in this release. +- Enh #114: Add PHP 8.5 support (@vjik) ## 2.3.1 March 06, 2025 diff --git a/README.md b/README.md index 2fae34c..4ec205f 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ The package handles user-related functionality: ## Requirements -- PHP 8.1 or higher. +- PHP 8.1 - 8.5. ## Installation diff --git a/composer.json b/composer.json index 7e7b5ef..ce82bf9 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ } ], "require": { - "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0", + "php": "8.1 - 8.5", "psr/event-dispatcher": "^1.0", "psr/http-message": "^1.0 || ^2.0", "psr/http-factory": "^1.0", From 573bef991ea665b2b7b7b0e3c6f5eff30e364141 Mon Sep 17 00:00:00 2001 From: vjik <525501+vjik@users.noreply.github.com> Date: Mon, 22 Dec 2025 09:48:27 +0000 Subject: [PATCH 2/3] Apply Rector changes (CI) --- tests/ConfigTest.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/ConfigTest.php b/tests/ConfigTest.php index 1cdd996..9d4b7d8 100644 --- a/tests/ConfigTest.php +++ b/tests/ConfigTest.php @@ -116,9 +116,7 @@ private function getInaccessibleProperty(object $object, string $propertyName) { $class = new ReflectionObject($object); $property = $class->getProperty($propertyName); - $property->setAccessible(true); $result = $property->getValue($object); - $property->setAccessible(false); return $result; } } From 5b41e3693d07bd32f03746677ecb6441b698f3a0 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Mon, 22 Dec 2025 09:48:41 +0000 Subject: [PATCH 3/3] Apply fixes from StyleCI --- tests/ConfigTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/ConfigTest.php b/tests/ConfigTest.php index 9d4b7d8..81c84fe 100644 --- a/tests/ConfigTest.php +++ b/tests/ConfigTest.php @@ -116,7 +116,6 @@ private function getInaccessibleProperty(object $object, string $propertyName) { $class = new ReflectionObject($object); $property = $class->getProperty($propertyName); - $result = $property->getValue($object); - return $result; + return $property->getValue($object); } }