Cannot map PhpStan NullType to ParserNode #7170
-
Hey, I cannot map a NullType to a ParserNode as it is blocked for Param usages. https://github.com/rectorphp/rector-src/blob/main/packages/PHPStanStaticTypeMapper/TypeMapper/NullTypeMapper.php#L43 Is this intended. I can have
in my code. Looks like valid for me |
Beta Was this translation helpful? Give feedback.
Answered by
TomasVotruba
May 14, 2022
Replies: 1 comment 3 replies
-
Hi, I think the property cannot be null: public null $name; What exactly is your issue with what rule and code? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
shyim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I think the property cannot be null:
What exactly is your issue with what rule and code?