1

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?

user3383675
  • 1,041
  • 5
  • 12
  • 31

1 Answers1

1

This actually worked for me in PhpStorm 9. Maybe you should try upgrading: https://www.jetbrains.com/phpstorm/download/

Evadecaptcha
  • 1,403
  • 11
  • 17