Repository navigation
refactor(php82): use PHP 8.2 idioms - #64
Merged
Merged
Conversation
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
…_starts_with, ??= and a first-class callable Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
somethingwithproof
force-pushed
the
chore/php82-floor
branch
from
December 3, 2026 09:35
ae88a04 to
3568ad7
Compare
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
|
TheWitness
approved these changes
Dec 3, 2026
TheWitness
left a comment
Member
There was a problem hiding this comment.
Reviewed: behavior-preserving PHP 8.2 idiom refactor, CI green. LGTM.
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.



Closes #63.
Corrects the README PHP floor to 8.2, removes the Dependabot
composerecosystem (no manifest), and usesreadonlypromoted properties andstr_ends_with.Commits:
Tests
The plugin test suite passes on PHP 8.2, 8.4 and 8.5,
php -lis clean on all three, PHPStan reports the same messages as before, and every changed line is covered by tests. Anyswitchturned intomatchcompares values that are already integers or strings at every caller, so the strict comparison changes nothing.PHP 8.5 deprecations
This PR also replaces constructs that PHP 8.5 deprecates. Each replacement behaves the same on PHP 8.2, so no version guard is needed.
tests/E2E/e2e_common.php(2 calls): removed.