Repository navigation
Support PHP 7.4 as minimum version - #338
Merged
Merged
Conversation
TomasVotruba
force-pushed
the
support-php-74
branch
2 times, most recently
from
October 5, 2026 20:37
a4782c9 to
217b675
Compare
Downgrade src syntax to 7.4 (readonly, promotion, typed constants, union types), lower php constraint to >=7.4, widen union node params to native Node for param type coverage, add PHP 7.4 syntax-lint CI job.
TomasVotruba
force-pushed
the
support-php-74
branch
from
October 5, 2026 21:05
217b675 to
bc11337
Compare
Require entropy ^0.4.25.
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.
Lowers the minimum PHP requirement to 7.4 so the ruleset can run on legacy projects (PHPStan itself supports 7.4+).
composer.json:phpconstraint^8.4->>=7.4src/syntax to 7.4 via Rector downgrade sets:readonlyclasses/properties ->@readonlydocblocks@var@paramdocblocksReflectionMethod::getAttributes()guarded withmethod_exists()(8.0+ only)phpstan.neon: constant/param type-coverage thresholds set to 0 (typed constants and union types do not exist on 7.4), plus a scoped ignore for the getAttributes compat shimPHP 7.4 Compatibilityjob that lints everysrc/file on PHP 7.4Dev tooling (PHPUnit, Rector, type-coverage, illuminate) stays on 8.x and runs on the existing 8.4 matrix; only the runtime source is downgraded.
Stacked on #337 (entropy/native replacement); retarget to main once that merges.