How do versions for provideMinPhpVersion get decided? #9594
-
|
Somewhat similar to: #8823 (comment) Me wanting to prepare my 8.3 project for 8.4 i wanted to run the rules like: From what i can see Explicit nullable params are supported ever since php 7.1 But it is deprecated to do implicit nullable params since 8.4. My question is, in cases like these. Shouldn't the minimal php version for this be 7.1, but it be added to the PHPset of 8.4? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
You can do: ->withPhpSets(php83: true)
->withPhpVersion(PhpVersion::PHP_84)
->withRules([
ExplicitNullableParamTypeRector::class,
]);do with your own risk :) https://getrector.com/demo/c8616d28-1626-45cd-98b6-e524a4de3d82 |
Beta Was this translation helpful? Give feedback.
You can do:
do with your own risk :)
https://getrector.com/demo/c8616d28-1626-45cd-98b6-e524a4de3d82