chore: require-dev を更新し php-cs-fixer を追加 - #7
Merged
nemuvski merged 2 commits intoSep 3, 2026
Conversation
開発用ツールのバージョン追跡を容易にするため、CI で利用している php-cs-fixer を require-dev に追加し、PHPStan / PHPUnit の制約を現行の安定マイナーに揃える。
friendsofphp/php-cs-fixer を require-dev に追加したため、setup-php の tools 指定をやめ、composer install 後の vendor/bin/php-cs-fixer を使う。
nemuvski
marked this pull request as ready for review
September 3, 2026 06:15
nemuvski
approved these changes
Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
公開パッケージとしての互換性を維持しつつ、開発環境の
require-devを現行マジャー範囲で最新化しました。更新前の
mainでcomposer validate --strict/composer install/php-cs-fixer fix --diff --dry-run/vendor/bin/phpstan analyse/vendor/bin/phpunit tests/を実行し、既存の検証失敗はありませんでした。概要
friendsofphp/php-cs-fixerをrequire-devに追加し、バージョンを追いやすくしましたcomposer.lockは.gitignore対象のため追加していません何をアップデートしたか
^3.95(解決 3.95.24)^2.0→^2.2(解決 2.2.12)^9.5→^9.6(解決 9.6.36)@stableのまま(解決 v0.12.24)まとめた理由
開発用ツールチェーンの定期メンテナンスで、すべて現行マジャー内の更新です。CI の PHP マトリクス(7.4 / 8.5)の両方で
composer installと各ツールが動くことを確認しています。Breaking Changes / Migration
.php-cs-fixer.dist.php(@PER-CS)で差分なし。ソース変更は不要でしたphpstan.neonのまま通過見送り
require(guzzlehttp/guzzle): 公開パッケージの互換性維持のため対象外require.phpの下限 / パッケージversion/ GitHub Actions: 対象外composer.lockの新規追加:.gitignore済みのため追加しない.devcontainer/devcontainer.jsonは既に最新安定マジャー 8.5検証
PHP 8.5.10(CI 最新系列)と PHP 7.4.33(CI 下限)の両方で実行し、すべて成功しました。
composer validate --strictcomposer install --prefer-dist --no-progressphp-cs-fixer fix --diff --dry-runvendor/bin/phpstan analysevendor/bin/phpunit tests/(7 tests / 36 assertions)