Jean-FrancoisHIVERT, thank you for the code sample.
We should probably behave consistently with magic methods __call.
1/ $x->test is not defined, and we incorrectly don't show anything. Historically, we expected that users introduce their dynamic properties using PHPDoc /** @property $test */ above the class, but it's not always the case.
2/ ->{...} is an indirect property access that (mostly) can't be resolved statically, so we treat it as mixed. In this special case, we can improve, though.