Implicit null #8909
Implicit null
#8909
-
The Rector are not detecting the implicit null deprecation return RectorConfig::configure()
->withPhpSets(php84: true); function foo(int$bar = null){}
|
Beta Was this translation helpful? Give feedback.
Answered by
samsonasik
Nov 23, 2024
Replies: 2 comments
-
If you don't have runtime php 8.4 or have but have composer.json not define https://getrector.com/demo/75fcfb81-0ff1-4194-a5e0-603813d3f2d5 for note: upgrading code php should be step by step, see #8823 (comment) for reasoning. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
samsonasik
-
Works, thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you don't have runtime php 8.4 or have but have composer.json not define
"php": ^8.4
, you can enforce it via :->withPhpVersion(PhpVersion::PHP_84)
, seehttps://getrector.com/demo/75fcfb81-0ff1-4194-a5e0-603813d3f2d5
for note: upgrading code php should be step by step, see #8823 (comment) for reasoning.