Skip to content

chore(deps): 升级 PHPUnit 13.4 / PHPStan 2.3 / PHP >=8.4.1 - #38

Merged
JanHuang merged 2 commits into
masterfrom
chore/phpunit13-phpstan2
Oct 27, 2026
Merged

JanHuang merged 2 commits into
masterfrom
chore/phpunit13-phpstan2

Conversation

@JanHuang

Copy link
Copy Markdown
Member

变更

统一升级 dev 工具与 PHP 基线:

  • php: >=8.4 → >=8.4.1
  • phpunit/phpunit: ^10.0 → ^13.4
  • phpstan/phpstan: ^1.12.24 → ^2.3

本仓库适配

ServerRequest 文件列表去除冗余 array_filter;PHPStan baseline 按 2.x 重新生成

验证

  • PHPUnit 13:757 tests / 2004 assertions,exit 0
  • PHPStan 2:[OK] No errors

测试中的 Warnings/Notices 为原有测试环境提示,非本次升级失败。

- PHPUnit/PHPStan 同步升级到当前大版本
- 迁移 PHPUnit 13 配置,移除已废弃属性
- 适配 PHPUnit 13 测试 API 变更
- PHPStan 2 分析通过(必要时更新 baseline)
- PHP 基线提升到 >=8.4.1
- 移除已停用的 Travis 构建 badge
- 使用 GitHub Actions ci.yml badge
- middleware PSR15 badge 链接改为 PSR-15 规范
- event 补充 GitHub Actions badge
@JanHuang
JanHuang merged commit df49239 into master Oct 27, 2026
1 of 2 checks passed
@JanHuang
JanHuang deleted the chore/phpunit13-phpstan2 branch October 27, 2026 03:12
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