-
-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Php84] Add ExplicitNullableParamTypeRector #5724
Conversation
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
All checks have passed 🎉 @TomasVotruba it is ready for review. |
implemented 🎉 /cc @mfn |
Looks good, thank you 🥳 |
|
||
public function provideMinPhpVersion(): int | ||
{ | ||
return PhpVersionFeature::DEPRECATE_IMPLICIT_NULLABLE_PARAM_TYPE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to be changed to PHP 7.1, as this is the minimum version that support the nullable types. Projects need to make this change in order to be fully compatible with PHP 7.4: #5848
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would we optional coding style preference. Since PHP 8.4 it's part of required upgrade path.
Closes rectorphp/rector#8520