From 01d3f5fe9cd56adb4a2cb8ef63896b02c79dfca6 Mon Sep 17 00:00:00 2001 From: Art4 Date: Fri, 24 Nov 2023 08:40:16 +0100 Subject: [PATCH] Add support for PHP 8.3, run tests with PHP 8.4 --- .github/workflows/tests.yml | 14 +++++++------- CHANGELOG.md | 4 ++++ composer.json | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 737d8bb..641b55d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,13 +11,13 @@ jobs: tests: name: Tests (PHP ${{ matrix.php }} with ${{ matrix.prefer-versions }} lib versions) runs-on: ubuntu-latest - continue-on-error: ${{ matrix.php == '8.3' }} + continue-on-error: ${{ matrix.php == '8.4' }} strategy: fail-fast: false matrix: operating-system: ['ubuntu-latest'] - php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] + php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] prefer-versions: ['latest'] include: - php: '7.2' @@ -46,12 +46,12 @@ jobs: with: composer-options: --prefer-lowest - - name: "Install Composer dependencies (PHP < 8.3)" - if: ${{ matrix.prefer-versions == 'latest' && matrix.php < '8.3' }} + - name: "Install Composer dependencies (PHP <= 8.3)" + if: ${{ matrix.prefer-versions == 'latest' && matrix.php <= '8.3' }} uses: "ramsey/composer-install@v2" - - name: "Install Composer dependencies (PHP 8.3)" - if: ${{ matrix.php >= '8.3' }} + - name: "Install Composer dependencies (PHP 8.4)" + if: ${{ matrix.php >= '8.4' }} uses: "ramsey/composer-install@v2" with: composer-options: --ignore-platform-reqs @@ -65,7 +65,7 @@ jobs: run: composer run phpstan -- --error-format=github - name: Send coverage report to Codecov - if: ${{ success() && matrix.php == '8.2' }} + if: ${{ success() && matrix.php == '8.3' }} uses: codecov/codecov-action@v3 with: files: ./.code-coverage/clover.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index 6760798..9145100 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased](https://github.com/Art4/WP-Requests-PSR18-Adapter/compare/1.1.0...HEAD) +### Added + +- Add support for PHP 8.3 + ## [1.1.0 - 2023-08-31](https://github.com/Art4/WP-Requests-PSR18-Adapter/compare/1.0.1...1.1.0) ### Added diff --git a/composer.json b/composer.json index cfa085a..5fe543a 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ } ], "require": { - "php": "^7.2 || ~8.0.0 || ~8.1.0 || ~8.2.0", + "php": "^7.2 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0", "psr/http-client": "^1.0", "psr/http-factory": "^1.0", "psr/http-message": "^1.1 || ^2.0",