Repository navigation
Conversation
PHP 8.0 已于 2023-11-26 结束安全支持。继续支持它还带来实际成本: PHP 8.0 上 composer 会解析出 symfony/cache 5.4 + psr/simple-cache 3.0 这一运行时不兼容的组合(symfony/cache 6.0 起才支持 psr/simple-cache 3.x), 导致 CI 的 PHP-8-stable 任务持续失败。 BREAKING CHANGE: 不再支持 PHP 8.0,请升级到 PHP 8.1 及以上。
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
背景
PHP 8.0 已于 2023-11-26 结束安全支持。
继续支持它还带来了实际成本:在 PHP 8.0 上,
composer update --prefer-stable会解析出symfony/cache 5.4+psr/simple-cache 3.0这一运行时不兼容的组合(symfony/cache要到 6.0 才支持psr/simple-cache3.x),构造Psr16Cache时抛LogicException,CI 的PHP-8-stable任务因此持续失败。该失败与代码改动无关,属于依赖漂移:
test.yml上一次在6.x上运行是 2026-04-16,这之后的依赖发布触发了这个组合。修改
composer.json的php约束从>=8.0.2提升至>=8.18.0破坏性变更
不再支持 PHP 8.0,需升级到 PHP 8.1 及以上。建议随下一个 minor 版本发布。
关联
#2990 中包含了一处针对该问题的 CI 临时约束(仅在 PHP 8.0 的 job 中把
psr/simple-cache限制到^1.0|^2.0),本 PR 合并后那段可以一并移除。