-
Notifications
You must be signed in to change notification settings - Fork 545
Fix specifying types for left side of null coalesce #1707
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
Conversation
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.
- Would you try deleting the
ifabout Coalesce in TypeSpecifier on line 971 to see if it's still needed? - Shouldn't this somehow work recursively even for
$foo ?? $bar ?? $baz?
- Would you try deleting the if about Coalesce in TypeSpecifier on line 971 to see if it's still needed?
The bug-560 test fails without it
- Shouldn't this somehow work recursively even for $foo ?? $bar ?? $baz?
Without thinking too much about it it might, but I'd rather approach that separately - I haven't seen that kind of type narrowing in actual code before.
0c261d3 to
48e3ee2
Compare
The test failure is unrelated as far as I can tell - broken by laravel/framework@d44c345
I agree, thank you very much 😊
Fix phpstan/phpstan#5304
Fix phpstan/phpstan#7244
Fix phpstan/phpstan#7501
Fix phpstan/phpstan#7639
Fix phpstan/phpstan#7949