Repository navigation
Commit 6a792b5
committed
List all rules directly in php-version-based.php, add ruleWithConfigurationPhpVersionBound()
The single set now enumerates every PHP version rule in one rules() call with
per-version comment separators, mirroring rector-symfony composer-based.php.
Configured rules that span multiple versions (RenameFunctionRector,
RemoveFuncCallArgRector, RenameCastRector) are registered via the new
RectorConfig::ruleWithConfigurationPhpVersionBound(), which applies a
configuration only when the target PHP version is high enough - mirroring
ruleWithConfigurationComposerVersionBound() for package versions. An explicitly
picked withPhpSets(phpXX) version is the target, otherwise the project
composer.json PHP version is used.
Claude-Session: https://claude.ai/code/session_014Q25TQ4b7b13UQQXScu3Fg1 parent e936ba0 commit 6a792b5
2 files changed
Lines changed: 627 additions & 20 deletions
0 commit comments