diff --git a/.github/workflows/.github/workflows/composer-require-checker.yml b/.github/workflows/.github/workflows/composer-require-checker.yml index a93390b..d2ef508 100644 --- a/.github/workflows/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/.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/.github/workflows/build.yml b/.github/workflows/build.yml index 3584e6c..1b1e2d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,4 +31,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/CHANGELOG.md b/CHANGELOG.md index 309b9f1..67d20f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## 1.2.1 under development -- no changes in this release. +- Enh #49: Add PHP 8.5 support (@vjik) ## 1.2.0 September 23, 2025 diff --git a/README.md b/README.md index d00d1fd..e55bb4e 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ server request body selecting the parser according to the server request mime ty ## Requirements -- PHP 7.4 or higher. +- PHP 8.1 - 8.5. ## Installation diff --git a/composer.json b/composer.json index 8c0da1e..9a378e2 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ } ], "require": { - "php": "8.1 - 8.4", + "php": "8.1 - 8.5", "ext-json": "*", "psr/container": "^1.0 || ^2.0", "psr/http-factory": "^1.1", diff --git a/tests/RequestBodyParsersTest.php b/tests/RequestBodyParsersTest.php index 8d974fa..e591c59 100644 --- a/tests/RequestBodyParsersTest.php +++ b/tests/RequestBodyParsersTest.php @@ -253,7 +253,7 @@ private function createHandler(): BadRequestHandlerInterface ->willReturn(Status::OK); return new class ($mockResponse) implements BadRequestHandlerInterface { - private array|object|null $requestParsedBody; + private array|object|null $requestParsedBody = null; public function __construct( private readonly ResponseInterface $mockResponse,