From dc37dd0c5dd911b8633c560f65d61213249f83a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muhammet=20=C5=9Eafak?= Date: Sat, 28 Nov 2026 12:33:34 +0300 Subject: [PATCH] ci: test on PHP 8.6 Add PHP 8.6 to the CI test matrix and update the documented tested versions. --- .github/workflows/tests.yml | 2 +- README.md | 2 +- docs/Home.md | 2 +- docs/Installation.md | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index af97cca..a32a0ab 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.2', '8.3', '8.4', '8.5'] + php: ['8.2', '8.3', '8.4', '8.5', '8.6'] dependency-version: [prefer-stable] include: - php: '8.2' diff --git a/README.md b/README.md index 019a802..46f99a7 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ Emitter::emit($response); | `psr/http-factory` | `^1.0` | | `psr/http-client` | `^1.0` | -Tested on PHP 8.2, 8.3, 8.4 and 8.5 in CI. +Tested on PHP 8.2, 8.3, 8.4, 8.5 and 8.6 in CI. ## Installation diff --git a/docs/Home.md b/docs/Home.md index 5566fc5..04a27fa 100644 --- a/docs/Home.md +++ b/docs/Home.md @@ -71,7 +71,7 @@ The package ships four building blocks every PHP service ends up wiring by hand: ## Package metadata - **License**: MIT -- **Minimum PHP**: 8.2 (tested on 8.2, 8.3, 8.4, 8.5) +- **Minimum PHP**: 8.2 (tested on 8.2, 8.3, 8.4, 8.5, 8.6) - **Runtime dependencies**: `psr/http-message ^1.0 || ^2.0`, `psr/http-factory ^1.0`, `psr/http-client ^1.0`, `ext-json` - **Optional**: `ext-curl` (only required by `Client\Client`) - **Packagist**: [`initphp/http`](https://packagist.org/packages/initphp/http) diff --git a/docs/Installation.md b/docs/Installation.md index cadc37b..9569971 100644 --- a/docs/Installation.md +++ b/docs/Installation.md @@ -4,7 +4,7 @@ | Component | Minimum | Notes | |-----------------------|-----------------------|--------------------------------------------------------| -| PHP | **8.2** | Tested on 8.2, 8.3, 8.4, 8.5 in CI. | +| PHP | **8.2** | Tested on 8.2, 8.3, 8.4, 8.5, 8.6 in CI. | | `ext-json` | always | Used by `Response::json()` and `Helpers::send_request`. | | `ext-curl` | only for `Client\Client` | PSR-18 transport. Loaded check happens in the Client constructor — if `ext-curl` is missing you get a `ClientException` saying so. | @@ -58,7 +58,7 @@ composer ci # php-cs-fixer (dry run) + phpstan + phpunit ## CI matrix -The package's GitHub Actions workflow runs the test suite against PHP 8.2, 8.3, 8.4 and 8.5 on every push and pull request (plus a PHP 8.2 run with the lowest allowed dependency versions), and runs PHPStan (`level: 5`) and php-cs-fixer on PHP 8.2. See the [tests workflow](https://github.com/InitPHP/HTTP/blob/main/.github/workflows/tests.yml) and the [static analysis workflow](https://github.com/InitPHP/HTTP/blob/main/.github/workflows/static-analysis.yml) for details. +The package's GitHub Actions workflow runs the test suite against PHP 8.2, 8.3, 8.4, 8.5 and 8.6 on every push and pull request (plus a PHP 8.2 run with the lowest allowed dependency versions), and runs PHPStan (`level: 5`) and php-cs-fixer on PHP 8.2. See the [tests workflow](https://github.com/InitPHP/HTTP/blob/main/.github/workflows/tests.yml) and the [static analysis workflow](https://github.com/InitPHP/HTTP/blob/main/.github/workflows/static-analysis.yml) for details. ## Next step