From 21a512a1b6389a8aa0b6d88d9e6dfd9aa4388633 Mon Sep 17 00:00:00 2001 From: phpstan-bot Date: Thu, 19 Feb 2026 08:02:24 +0000 Subject: [PATCH] Update CI matrix to test PHP 7.4 through 8.5 Update the PHP version matrices in the lint, tests, and static-analysis jobs to cover PHP 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, and 8.5. Removed PHP 7.2 and 7.3 from the matrices and the associated PHPUnit downgrade steps that were only needed for those versions. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/build.yml | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 24763ac..128d19d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,12 +16,13 @@ jobs: strategy: matrix: php-version: - - "7.2" - - "7.3" - "7.4" - "8.0" - "8.1" - "8.2" + - "8.3" + - "8.4" + - "8.5" steps: - name: "Checkout" @@ -39,10 +40,6 @@ jobs: - name: "Install dependencies" run: "composer install --no-interaction --no-progress" - - name: "Downgrade PHPUnit" - if: matrix.php-version == '7.2' || matrix.php-version == '7.3' - run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies" - - name: "Lint" run: "make lint" @@ -91,12 +88,13 @@ jobs: fail-fast: false matrix: php-version: - - "7.2" - - "7.3" - "7.4" - "8.0" - "8.1" - "8.2" + - "8.3" + - "8.4" + - "8.5" dependencies: - "lowest" - "highest" @@ -119,10 +117,6 @@ jobs: if: ${{ matrix.dependencies == 'highest' }} run: "composer update --no-interaction --no-progress" - - name: "Downgrade PHPUnit" - if: matrix.php-version == '7.2' || matrix.php-version == '7.3' - run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies" - - name: "Tests" run: "make tests" @@ -134,12 +128,13 @@ jobs: fail-fast: false matrix: php-version: - - "7.2" - - "7.3" - "7.4" - "8.0" - "8.1" - "8.2" + - "8.3" + - "8.4" + - "8.5" dependencies: - "lowest" - "highest" @@ -164,9 +159,5 @@ jobs: if: ${{ matrix.dependencies == 'highest' }} run: "composer update --no-interaction --no-progress" - - name: "Downgrade PHPUnit" - if: matrix.php-version == '7.2' || matrix.php-version == '7.3' - run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies" - - name: "PHPStan" run: "make phpstan"