From f815aaf3598963dbb33f490e6f35c01161b7e2dc Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 3 Sep 2026 06:08:58 +0000 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20require-dev=20=E3=82=92=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E3=81=97=20php-cs-fixer=20=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 開発用ツールのバージョン追跡を容易にするため、CI で利用している php-cs-fixer を require-dev に追加し、PHPStan / PHPUnit の制約を現行の安定マイナーに揃える。 --- composer.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index e958a62..ab369f0 100644 --- a/composer.json +++ b/composer.json @@ -24,8 +24,9 @@ } ], "require-dev": { - "psy/psysh": "@stable", - "phpstan/phpstan": "^2.0", - "phpunit/phpunit": "^9.5" + "friendsofphp/php-cs-fixer": "^3.95", + "phpstan/phpstan": "^2.2", + "phpunit/phpunit": "^9.6", + "psy/psysh": "@stable" } } From 974f4fbeadf40cdcf2298a583d3ab7c7c2b6c358 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 3 Sep 2026 06:13:31 +0000 Subject: [PATCH 2/2] =?UTF-8?q?ci:=20php-cs-fixer=20=E3=82=92=20require-de?= =?UTF-8?q?v=20=E7=B5=8C=E7=94=B1=E3=81=A7=E5=AE=9F=E8=A1=8C=E3=81=99?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit friendsofphp/php-cs-fixer を require-dev に追加したため、setup-php の tools 指定をやめ、composer install 後の vendor/bin/php-cs-fixer を使う。 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index edcb111..9792d97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: uses: step-security/setup-php@de840ac176c62a2558231845e09841c1b62e0bd0 # v2.37.2 with: php-version: ${{ env.MAIN_PHP_VERSION }} - tools: composer, php-cs-fixer + tools: composer env: fail-fast: true @@ -33,7 +33,7 @@ jobs: run: composer install --prefer-dist --no-progress - name: Run formatter - run: php-cs-fixer fix --diff --dry-run + run: vendor/bin/php-cs-fixer fix --diff --dry-run - name: Run linter run: vendor/bin/phpstan analyse