Repository navigation
Raise the minimum supported PHP version to 8.2 - #104
Merged
Merged
Conversation
phpbits
marked this pull request as ready for review
December 2, 2026 17:40
Contributor
Author
|
@jeffpaul This is now ready for code review. Thanks! |
dkotter
approved these changes
Dec 3, 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 #98
This raises the minimum supported PHP version from 7.4 to 8.2 and tests the plugin up to PHP 8.5. The repository has no pull request template, so this follows the usual 10up sections.
PHP 7.4, 8.0 and 8.1 no longer get security fixes. The plugin's own code needed no changes to run on 8.2 to 8.5.
Changes:
embed-block-figma.php:Requires PHPheader and the bootstrap guard now say 8.2. The guard stays, so sites on older PHP still get the notice instead of a fatal error.readme.txt: added the missingRequires PHP: 8.2line.composer.json:require.phpis now>=8.2.phpcs.xmlandphpcs-compat.xml:testVersionis now8.2-..github/workflows/test.yml: the PHP matrix is now 8.2, 8.3, 8.4 and 8.5.README.mdand the Playground blueprint: now say PHP 8.2.composer.lock: refreshed.phpcompatibility/php-compatibilitymoved fromdev-developto the stable 9.3.5.Maintainer note on
composer.lock. Thedev-developbranch of PHPCompatibility now requires PHPCS 4, and10up/phpcs-composerpulls in VIP-WPCS, which requires PHPCS 3. The two cannot be installed together, so the lock could not be refreshed with that package in place. I removed the directphpcompatibility/php-compatibilityentry fromrequire-devand let it resolve throughphpcompatibility-wp.PHPCompatibility 9.3.5 has no sniffs for PHP 8.1 or later. The
php-compatworkflow can no longer flag problems on 8.2 to 8.5. A separate PHPCompatibility 10 install would fix that. I left it out of this pull request.Checks run before this change:
testVersion8.2-8.5: no findings.php -lon 8.2, 8.3, 8.4 and 8.5: clean.composer installfrom the previous lock on 8.2 and 8.5: passes.embed_defaultsand oEmbed proxy filters: no deprecations from plugin code.How to test the Change
composer install. It should finish without a lock warning.npm run wp-env:test start, thennpm run test:php. The tests should pass.Requires PHP: 8.2.Changelog Entry
Credits
Props @phpbits