From 033a74b8fb582b1807e9e0aa863e4da8d11d8320 Mon Sep 17 00:00:00 2001 From: Baspa Date: Thu, 18 Jun 2026 15:05:03 +0200 Subject: [PATCH] ci: drop EOL PHP 8.1/8.2 from test matrix; require PHP 8.3+ The test toolchain (pestphp/pest >=2.36.1 and brianium/paratest >=7.4) no longer supports PHP 8.1/8.2, so composer could not resolve dev dependencies on those versions and every CI run failed at the install step. Bump the supported range to ^8.3|^8.4 and update the run-tests matrix and PHPStan job accordingly. --- .github/workflows/phpstan.yml | 2 +- .github/workflows/run-tests.yml | 2 +- composer.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 3d25599..91a8d82 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -12,7 +12,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: "8.1" + php-version: "8.3" - name: Cache composer dependencies uses: actions/cache@v4 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index b8d6a96..b9bea8c 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,7 +9,7 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.1, 8.2, 8.3] + php: [8.3, 8.4] stability: [prefer-lowest, prefer-stable] name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/composer.json b/composer.json index c438c6d..c8e5868 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ } ], "require": { - "php": "^8.1|^8.2|^8.3" + "php": "^8.3|^8.4" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.85",