E.g. if the ide can't grok what a $var is you can do :
/** @var Some\Namespace\To\Class $var */ $var = ...
E.g. if the ide can't grok what a $var is you can do :
then when it reindexes things it has no problem tying everything together.