Conversation
|
@ondrejmirtes |
ondrejmirtes
left a comment
There was a problem hiding this comment.
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