You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example above works as expected. Why doesn't rector add the typecast when there is a docblock like
/** * @var string|null */public$importedId;
?
See: https://getrector.com/demo/83bcd62a-a5a2-4650-a1c3-7eeb0127cc2b
The param could be null, so a typecast would be correct in this case.
Is there a possibility in rector to disable the parsing of phpdoc, so rector wolud behave as if the phpdoc param was not there?
Thanks!
The text was updated successfully, but these errors were encountered:
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/02a7fdb5-a431-4806-b363-3d1d96495bf5
Responsible rules
NullToStrictStringFuncCallArgRector
Expected Behavior
The example above works as expected. Why doesn't rector add the typecast when there is a docblock like
?
See: https://getrector.com/demo/83bcd62a-a5a2-4650-a1c3-7eeb0127cc2b
The param could be null, so a typecast would be correct in this case.
Is there a possibility in rector to disable the parsing of phpdoc, so rector wolud behave as if the phpdoc param was not there?
Thanks!
The text was updated successfully, but these errors were encountered: