Repository navigation
Raise the minimum PHP version to 8.2 - #274
Merged
Merged
Conversation
Set Requires PHP to 8.2 in the plugin header, readme.txt, the bootstrap guard and composer.json, and refresh composer.lock. Test on PHP 8.2 to 8.5 in CI, run lint on PHP 8.2, and use PHP 8.2 in the Playground blueprint.
phpbits
marked this pull request as ready for review
December 2, 2026 11:45
phpbits
requested review from
dkotter,
dsawardekar and
jeffpaul
as code owners
December 2, 2026 11:45
Contributor
Author
|
@jeffpaul This is now ready for code review. Thanks! |
dkotter
reviewed
Dec 2, 2026
| Contributors: 10up, dsawardekar, tlovett1, jeffpaul | ||
| Tags: block, block migration, gutenberg migration, gutenberg conversion, convert to blocks | ||
| Tested up to: 7.1 | ||
| Requires PHP: 8.2 |
Collaborator
There was a problem hiding this comment.
This already exists in the main plugin file, not sure we need to add this here as well
dkotter
approved these changes
Dec 2, 2026
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.
Description of the Change
Closes #266
This raises the minimum supported PHP version from 8.0 to 8.2. The plugin is tested on PHP 8.2 through 8.5.
convert-to-blocks.php:Requires PHPis now 8.2, and the bootstrap guard returns8.2.readme.txt: added the missingRequires PHP: 8.2line.composer.json:require.phpis now>=8.2.composer.lockwas refreshed withcomposer update --lock. It changes the content hash, the platform entry andplugin-api-version. Composer also updated the PHP_CodeSniffer source URL to its new owner, with the same commit..github/workflows/test.yml: the PHP matrix is now 8.2, 8.3, 8.4 and 8.5..github/workflows/lint.yml: the lint job runs on PHP 8.2..wordpress-org/blueprints/blueprint.json: the Playground demo uses PHP 8.2.No plugin code needed to change. PHPCompatibility 10 found nothing in the plugin's own code for 8.2 to 8.5, and the plugin ships no third-party PHP.
How to test the Change
npm run build, then start the test site withWP_ENV_PHP_VERSION=8.2 npm run wp-env:test start.npm run test:php -- --verboseand check forRuntime: PHP 8.2.xand a passing result.WP_ENV_PHP_VERSION=8.5, and run the same command.npm run test:e2eagainst the running site.composer lint.Checks I ran:
php -lon every PHP filephpcs .Changelog Entry
I left
CHANGELOG.mdand thereadme.txtchangelog alone, because they are assembled at release time.Credits
Props @phpbits