-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop compatibility with PHP 5.6, 7.0 and 7.1 #333
Conversation
The YoastCS `2.3.1` release sets the minimum supported PHP version for the PHPCompatibility checker to `7.2`, which will allow for making code changes which are possible now support for PHP < 7.2 is being dropped. Ref: https://github.com/Yoast/yoastcs/releases/tag/2.3.1
This commit updates the locked test dependencies to versions compatible with PHP 7.2 (the new minimum supported PHP version). Effectively, this updates the locked PHPUnit version from version `5.7.27` to version `8.5.33`.
Patchwork, an underlying dependency for BrainMonkey, which is a dependency of WP Test Utils, has released new versions. This updates the Patchwork dependency to the latest release. Ref: https://github.com/antecedent/patchwork/releases
* Simplify the Composer install logic and make the logic be in sync with the logic used for the same elsewhere.
composer.lockDev Package changes
Settings · Docs · Powered by Private Packagist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed.
- I've double-checked that all references to PHP 5.6 have been updated/removed ✅
- Made the necessary selective updates to the
composer.json
andcomposer.lock
file. - Made a few small tweaks to the GH Actions scripts.
I've also verified that the tests currently pass on the absolute minimum PHP version by running the unit tests locally against PHP 7.2.5.
The caveat is, of course, that test coverage is low, so this is no guarantee, only a tentative indication.
Context
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
note: the above may be tricky to test. I can see 5.6 as a choice in Local by Flywheel, but I know it's not the case for others (and I can see 7.0 an 7.1 are not available - neither 7.2 actually)

I tried on Instawp, where you have the full choice of PHP versions, but when uploading the artifact I got:
which is also a nice thing to check, actually.
So a way could be:
Relevant test scenarios
Test instructions for QA when the code is in the RC
QA can test this PR by following these steps:
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
UI changes
Documentation
Quality assurance
Innovation
innovation
label and noted the work hours.Fixes Yoast/wordpress-seo#19801