From 0ad4ff020c2857358e5b6258dbe709a2b9674f6b Mon Sep 17 00:00:00 2001 From: Ben Peachey Date: Tue, 5 Aug 2025 14:37:47 +0200 Subject: [PATCH 1/2] Update ci.yml - Update `actions/checkout` to the latest version - Add newer PHP versions to the matrix - Add EOL dates as comments to PHP version --- .github/workflows/ci.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a69b1b..4a57133 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,11 +13,22 @@ jobs: strategy: matrix: - php-version: [ '7.3', '7.4', '8.0', '8.1', '8.2' ] + php-version: + - 7.3 # from 2018-12 to 2020-12 (2021-12) + - 7.4 # from 2019-11 to 2021-11 (2022-11) + - 8.0 # from 2020-11 to 2022-11 (2023-11) + - 8.1 # from 2021-11 to 2023-11 (2025-12) + - 8.2 # from 2022-12 to 2024-12 (2026-12) + - 8.3 # from 2023-11 to 2025-12 (2027-12) + - 8.4 # from 2024-11 to 2026-12 (2028-12) + - 8.5 # from 2025-11 to 2027-12 (2029-12) + + # Prevent unsupported versions of PHP to fail the CI run + continue-on-error: ${{ contains(fromJson('[ "7.3", "7.4", "8.0", "8.1", "8.2" ]'), matrix.php-version) == false }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 From c104be2e10392f480a948b3f02b62783e29bb040 Mon Sep 17 00:00:00 2001 From: Ben Peachey Date: Tue, 5 Aug 2025 14:50:47 +0200 Subject: [PATCH 2/2] Allow version 8.20.0 of slevomat/coding-standard --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 63b70d2..321fa4a 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "require": { "php": "^7.1 || ^8.0", "squizlabs/php_codesniffer": "^3.0.0", - "slevomat/coding-standard": "^6.0 || ^7.0 || ^8.0 <= 8.15.0" + "slevomat/coding-standard": "^6.0 || ^7.0 || ^8.0 <= 8.20.0" }, "require-dev": { "phpunit/phpunit": "^8.5.12"