
foo3(): miss
foo5(): false positive
I think that it could be fixed on EA, but is more related to a PS issue (I have opened WI-39614 to help).
Correct, in this case, type information is coming from IDE. It was multiple issues reported already to PhpStorm team.
On our end, I'll look into foo3 case - looks like I can introduce a fix there.
Can't thank you enough guys. You make the world a better place :)
@rentalhost @5lava also please vote for https://youtrack.jetbrains.com/issue/WI-38622 - it looks very similar to the reported case.
Voted for both.
Fixed foo3 case: it getting reported now.
@5lava : remaining issues has been fixed in #784 (workaround for WI-38622)
Thank you!