-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
Update test fixture: Do not remove true|T
from phpdoc as it cannot be narrowed to native bool|T
type hint
#1662
Conversation
Hi, I'm not sure what is the issue here. Could you elaborate more? |
Oh wait, native return typehint |
In that case, I have to rephrase it into |
false
to native return type hinttrue
to native return type hint
0a25ad5
to
f6a9c05
Compare
Yes, since union types you can use The |
the type should be converted into |
Where do you see https://github.com/rectorphp/rector-src/runs/4787682009?check_suite_focus=true#step:5:85 |
The |
I confused myself here a bit. Will rephrase. 🤯 |
true
to native return type hinttrue|T
from phpdoc as it cannot be narrowed to native bool|T
type hint
… `bool|T` type hint
Yeah, union types can get little crazy in nestings. Been there. Good, the last error makes sense. The comment should remain 👍 |
Original code does not compile
https://3v4l.org/klALN