I'm having troubles forcing the type of a variable to a specific class in order to be able to use autocompletion.
In other IDEs (NetBeans and Eclipse) I could use the pseudo-phpDoc @var as so:
/* @var $variable Class */
(notice the single * and the inversion of type and name).
I've also tried to use a more standard @var, this way:
/** @var Class $variable */
In this case the autocompletion for variable name (while typing "$variable") worked, with even the indication of the right type "Class" on the right of the popup, but then typing -> or even Ctrl+Space endend in a "No suggestions" message.
I need this kind of trick in order to use autocompletion with foreach variables, don't know if its the right way to achieve it, and sorry if this question was answered before, I've done a quick search in the forum but found nothing.
Thanks a lot,
Gabriele Genta (aka demerzel3)