Repository navigation
Repair wp/6.6 branch Actions: Fix the Composer PHP platform override breaking unit tests on older PHP - #82919
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
cdcf434 to
2f5f874
Compare
|
Size Change: 0 B Total Size: 1.73 MB ℹ️ View Unchanged
|
2f5f874 to
561775b
Compare
561775b to
00565b9
Compare
cb99f72 to
49c38ee
Compare
49c38ee to
d4af35b
Compare
d4af35b to
f566b76
Compare
wp/6.6 branch Actions: Fix Composer PHP platform value override breaking unit tests in older PHP versionswp/6.6 branch Actions: Fix the Composer PHP platform override breaking unit tests on older PHP
f566b76 to
aa02038
Compare
aa02038 to
b8bd1f1
Compare
Part of #82784.
What?
Removes
unit-test.yml's "Override PHP version in composer.json" step andcomposer.json'sconfig.platform.phpvalue, replacing them with an explicitrequire.php: ">=7.2.24"constraint.Why?
The override step ran
composer config platform.php ${{ matrix.php }}, settingplatform.phpto the bare version string for each matrix leg (e.g.7.2). Composer normalizes a bare major.minor value tomajor.minor.0.0for dependency resolution, which is below the>=7.2.5minimum required bysymfony/consoleandsymfony/process(both pulled in byspatie/phpunit-watcher) — even though the actual PHP interpreter installed for that job (viashivammathur/setup-php) is a current7.2.xpatch release well above7.2.5. This made thePHP 7.2job inunit-test.ymlfail outright with "Your requirements could not be resolved to an installable set of packages."How?
This is a direct port of commit d2eb077 ("Unit testing: Allow Composer to auto-detect PHP version", WordPress/gutenberg#73358), merged to trunk 2025-11-18 and already present on
wp/6.9.>=7.2.24is WordPress 6.6's minimum PHP version.Use of AI Tools
This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.