Skip to content

chore!: PHP 8.1 の対応を外し PHPUnit 11 へ上げる - #31

Merged
tomio2480 merged 2 commits into
mainfrom
chore/drop-php81-phpunit11
Nov 16, 2026
Merged

tomio2480 merged 2 commits into
mainfrom
chore/drop-php81-phpunit11

Conversation

@tomio2480

Copy link
Copy Markdown
Owner

セルフレビュー実施済み(指摘は 0277dca で反映)./security-review 実施済み(CI 設定と依存関係を含むため実行,確度 8 以上の指摘なし).

概要

v2.0.0 に向けて,PHP 8.1 の対応を外し,PHPUnit を 10 から 11 へ上げます.

  • PHP 8.1 は 2025-12-31 に本体のサポート(セキュリティ修正を含む)が終わりました.
  • 対応する PHP の版は本体のサポート期間に合わせる方針とし,README に明記しました.8.2 は 2026-12-31 にサポートが終わる予定です.
  • PHPUnit 10 はサポートが終わっています.PHPUnit 11 は PHP 8.2 以上を要するため,8.1 を外して上げられるようになりました.

変更内容

ファイル 変更
composer.json php を ^8.2,phpunit/phpunit を ^11.5
phpunit.xml PHPUnit 11 で廃止された beStrictAboutTodoAnnotatedTests を削除(スキーマの非推奨警告が消える)
.github/workflows/ci.yml マトリクスから 8.1 を削除
README.md・CONTRIBUTING.md 動作環境と対応方針の記述

確認したこと

  • composer validate --strict: 成功
  • composer qa: 成功(PHPUnit 11.5.58,54 件,環境依存の 5 件は skip,非推奨警告なし)
  • テストは属性(#[DataProvider]・#[Group])を使っており,PHPUnit 11 で削除されたアノテーションや API は使っていません.
  • composer.lock は Git 管理外のため,CI は PHP の版ごとに依存を解決します.

論点

  • ci: PHP 8.6 を試験的にテストマトリクスへ加える #22(PHP 8.6 を CI に加える)と ci.yml のマトリクスで衝突します.先にマージした側に合わせて,もう一方を直します.
  • PHP 8.2 も 2026-12-31 にサポートが終わります.同じ方針なら,年明けの次のリリースで外すことになります.

ドキュメント整合性

README.md の動作環境に方針を加え,CONTRIBUTING.md の必要な環境・CI の説明・PHP-CS-Fixer の警告の説明を 8.2 に合わせました.PHPDEV.md は汎用のベストプラクティス文書のため変えていません.

🤖 Generated with Claude Code

tomio2480 and others added 2 commits November 16, 2026 18:10
PHP 8.1 は 2025-12-31 に本体のサポート(セキュリティ修正を含む)が
終わった。対応する PHP の版は本体のサポート期間に合わせる方針とし、
README にも明記する。

- composer.json: php を ^8.2、phpunit/phpunit を ^11.5 にする。
  PHPUnit 10 はサポートが終わっており、11 は PHP 8.2 以上を要する。
- phpunit.xml: PHPUnit 11 で廃止された beStrictAboutTodoAnnotatedTests を
  外す(スキーマの非推奨警告が消える)。
- CI のマトリクスから 8.1 を外す。

BREAKING CHANGE: PHP 8.1 では導入できなくなる。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
警告は composer.json の最低バージョンと実行中の PHP を比べて出る。
最低バージョンを 8.2 へ上げたため、説明もそれに合わせる。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 0a231b58-2295-426c-8a9d-344793a4b31e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

Copy link
Copy Markdown

Lint summary

ツール この PR の差分 リポジトリ全体
markdownlint 0 0
textlint 0 0

検査対象: Merge 0277dca into 23e08ba(base: 23e08ba)

指摘はありません.

Actions run: https://github.com/tomio2480/php-serial/actions/runs/43883394750/attempts/1

@tomio2480

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T17:38:16.324354Z 0277dca Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 0277dcab69

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@tomio2480
tomio2480 marked this pull request as ready for review November 16, 2026 17:38
@tomio2480
tomio2480 merged commit 7796d81 into main Nov 16, 2026
19 checks passed
@tomio2480
tomio2480 deleted the chore/drop-php81-phpunit11 branch November 16, 2026 17:38
tomio2480 added a commit that referenced this pull request Nov 16, 2026
main で PHP 8.1 を CI のマトリクスから外した(#31)。
ci.yml の衝突は、8.1 を外したうえで 8.6 を試験扱いで足す形に解いた。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant