-
Notifications
You must be signed in to change notification settings - Fork 504
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
Fix/issue 7109 #1253
Fix/issue 7109 #1253
Conversation
@ondrejmirtes |
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.
Thank you, this is really nice! I'll look into improving the error message myself 😊
Thank you. I'll try to improve the message directly on the branch. |
Alright, done: 54f1544 I took advantage of IssetCheck already knowing the right context, I also tried to preserve the original behaviour as much as possible. |
@ondrejmirtes |
Oh, it was not.
this might be an edge case of this fix. When there is a method call, all expression before it is evalauted (and property fetch on null cause a warning) |
@rajyan Can you please show that on phpstan.org/try and post the expected output? Thanks :) |
@ondrejmirtes |
Alright, feel free to submit a regression test for the |
fixes phpstan/phpstan#7109
See phpstan/phpstan#7109 (comment) for the discussion and implementation