I have the following code in an application powered by Silex:
$uknownObj->unkownRef
$uknownObj
being a dependency injection container.
I know that unkownRef
is of instance MyCoolObj
.
Now how can I tell IntelliJ / PhpStorm to actually help me with autocomplete of this said object?
You can either use phpdoc comments as suggested by xmoex, or assert type with
instanceof
: