From ea83a7d318f04ea5cd5cfea8b445d44d894b7b6b Mon Sep 17 00:00:00 2001 From: Sylvain Fabre Date: Tue, 24 Mar 2026 23:02:01 +0100 Subject: [PATCH 1/2] Upgrade analysis tools to latest on lowest dependency runs Also fix CI trigger branch from master to main. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aab6f82..4fb0438 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ name: Build on: push: - branches: [ master ] + branches: [ main ] pull_request: types: [opened, synchronize, reopened] @@ -29,6 +29,10 @@ jobs: with: dependency-versions: ${{ matrix.dependency-versions }} + - name: Upgrade analysis tools to latest + if: ${{ matrix.dependency-versions == 'lowest' }} + run: composer update phpstan/phpstan rector/rector phpunit/phpunit --with-all-dependencies --no-interaction + - run: vendor/bin/phpcs if: ${{ failure() || success() }} From 7ea384343431942d9a1e6a9215301852ad6cb84e Mon Sep 17 00:00:00 2001 From: Sylvain Fabre Date: Tue, 24 Mar 2026 23:10:10 +0100 Subject: [PATCH 2/2] Also upgrade phpcs to latest on lowest dependency runs Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4fb0438..dacd9a2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,7 @@ jobs: - name: Upgrade analysis tools to latest if: ${{ matrix.dependency-versions == 'lowest' }} - run: composer update phpstan/phpstan rector/rector phpunit/phpunit --with-all-dependencies --no-interaction + run: composer update phpstan/phpstan rector/rector phpunit/phpunit squizlabs/php_codesniffer --with-all-dependencies --no-interaction - run: vendor/bin/phpcs if: ${{ failure() || success() }}