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", diff --git a/tests/ConfigTest.php b/tests/ConfigTest.php index 1cdd996..81c84fe 100644 --- a/tests/ConfigTest.php +++ b/tests/ConfigTest.php @@ -116,9 +116,6 @@ 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; + return $property->getValue($object); } }