I know that in $Foo
and in $array['Foo']
I have got stored the class Bar
instance.
I expected the same result of using the @var
annotation in both cases.
It works correctly:
/* @var $Foo Bar */
$Foo->| // [I see tips correctly]
But how to do that:
/* @var $array['Foo'] Bar */
$array['Foo']->| // [I want to see tips here, but nothing happens]
P.S. Sign |
shows the Text Cursor position.
P.S.2. I tested this annotation on PhpStorm 7. Is not this IDE ready for this feature?