Skip to content

Conversation

@johnjago
Copy link
Contributor

@johnjago johnjago commented Aug 6, 2024

As of WordPress 6.6, released on 16 July 2024, WordPress no longer supports PHP 7.0 and 7.1, so I’ve updated the recommended testVersion for PHPCompatibilityWP to be 7.2 in the README.

References:

@jrfnl
Copy link
Member

jrfnl commented Aug 6, 2024

I'm in two minds about this change. For plugins/themes, WPCS, by default, presumes support for the last three versions of WP Core and two of those do not have a minimum supported version of PHP 7.2 yet.

At the same time, the phrasing in the README says "the same PHP versions as WordPress Core supports", so leaving that recommendation at PHP 7.0 is not correct either.

Also note that any update like this should probably also update the phpcs.xml.dist.sample file.

Copy link
Member

@jrfnl jrfnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it is time to merge this by now.

Note: I will submit a separate PR to make some updates to the phpcs.xml.dist.sample ruleset. That doesn't need to block this PR.

@jrfnl
Copy link
Member

jrfnl commented Sep 16, 2025

I've taken the liberty to merge in the dev branch to get this into a mergable state. I will (squash)-merge this once the build has passed.

@jrfnl jrfnl merged commit 9839cbd into WordPress:develop Sep 16, 2025
29 checks passed
rodrigoprimo pushed a commit to rodrigoprimo/WordPress-Coding-Standards that referenced this pull request Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants