I've got very dynamic code that is impossible to analyze statically. So I'd like to tell PhpStorm about the types of my variables, so that autocompletion works correctly. Example code:
$article = $this->object;
I'd like to tell PhpStorm that $a is actually an instance of the Article class, so that things like $article->title can be auto-completed.
How would I go about this?