Repository navigation
Conversation
Run the PHP unit tests on PHP 5.6, 7.0 and 7.4 instead of only the `wordpress-develop` local environment's default. WordPress 5.3 requires PHP 5.6.20 and supports up to PHP 7.4, so these are the lowest and highest supported minor versions of each supported major PHP version. The `wordpress-develop` `5.3` branch tests the same three versions. `LOCAL_PHP` selects the PHP image for the local environment. PHPUnit 5.7 is installed on PHP 5.6 and 7.0, which the locked PHPUnit version does not support. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SRW6hV7j7bc8cxt2LUbPJt
desrosj
changed the base branch from
fix-actions-5.3/upgrade-node-to-14
to
wp/5.3
October 20, 2026 23:54
desrosj
force-pushed
the
fix-actions-5.3/test-php-version-matrix
branch
from
October 20, 2026 23:54
73ed924 to
3f3be38
Compare
desrosj
changed the base branch from
wp/5.3
to
fix-actions-5.3/upgrade-node-to-14
October 20, 2026 23:55
desrosj
marked this pull request as ready for review
October 26, 2026 18:55
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the 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. |
Owner
Author
|
Moved to WordPress#85630. |
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.
What?
Runs the PHP unit tests on PHP
5.6,7.0and7.4, each single site and multisite, instead of only on thewordpress-developlocal environment's default PHP version (7.4).Why?
WordPress
5.3supports PHP5.6through7.4, so the plugin code on this branch has to run on all of them. Testing only PHP7.4would miss anything that breaks on the PHP versions at the bottom of that range.How?
The matrix tests the lowest and highest supported minor version of each major PHP version WordPress
5.3supports:5.6is the only supported PHP 5 version, and7.0and7.4bound PHP 7. The range comes from$required_php_version = '5.6.20'insrc/wp-includes/version.phponwordpress-develop's5.3branch, and the PHP Compatibility and WordPress Versions handbook page, which lists5.3as compatible with PHP5.6to7.4and not with8.0.wordpress-develop's ownphpunit-tests.ymlon its5.3branch tests the same three versions.LOCAL_PHPselects thephp,cliandphpunitimages of thewordpress-developlocal environment. Thecomposer.lockinwordpress-developlocks PHPUnit7.5, which requires PHP7.1, so on PHP5.6and7.0PHPUnit^5.7is installed along with the PHPUnit Polyfills instead. As inwordpress-develop's own CI, the tests run each image's bundled PHPUnit (5.7.27,6.5.14and7.5.20); the Composer-installed PHPUnit is only there for the Polyfills and the autoloader.Testing Instructions
The workflow runs on this pull request: check that the six
PHPjobs run and pass.actionlintreports nothing for the workflow.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.
🤖 Generated with Claude Code
https://claude.ai/code/session_01SRW6hV7j7bc8cxt2LUbPJt