phpstan icon indicating copy to clipboard operation
phpstan copied to clipboard

Method return value not recognized when calling an other method in between

Open gregor-tb opened this issue 3 years ago • 2 comments

Code snippet that reproduces the problem

https://phpstan.org/r/88b4ba76-8196-4568-9da7-943ea5b5695b

Expected output

Should detect valid not-null array here, as it does when you remove $this->doSomething(); here.

Did PHPStan help you today? Did it make you happy in any way?

Working hard to increase 2 levels this week :)

gregor-tb avatar Feb 08 '22 13:02 gregor-tb