From bbc6e395e2868d8945b15c01224c6e5688260170 Mon Sep 17 00:00:00 2001 From: yankewei Date: Wed, 12 Nov 2025 18:23:49 +0800 Subject: [PATCH] Fix: Use PHP 8.1 in CS Fixer CI workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace Docker image with explicit PHP 8.1 setup to match project's minimum requirement. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/php-cs-fixer.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/php-cs-fixer.yml b/.github/workflows/php-cs-fixer.yml index 07ea4a2c..faeddf56 100644 --- a/.github/workflows/php-cs-fixer.yml +++ b/.github/workflows/php-cs-fixer.yml @@ -24,10 +24,15 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 - - name: Run PHP CS Fixer - uses: docker://oskarstark/php-cs-fixer-ga + - name: Setup PHP + uses: shivammathur/setup-php@v2 with: - args: --config=.php-cs-fixer.dist.php --allow-risky=yes + php-version: '8.1' + coverage: none + - name: Install dependencies + run: composer install --prefer-dist --no-progress + - name: Run PHP CS Fixer + run: composer run fix-code - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4 with: