PHP @var annotation for array element -
i know in $foo , in $array['foo'] have got stored class bar instance.
i expected same result of using @var annotation in both cases.
it works correctly:
/* @var $foo bar */ $foo->| // [i see tips correctly] but how that:
/* @var $array['foo'] bar */ $array['foo']->| // [i want see tips here, nothing happens] p.s. sign | shows text cursor position.
p.s.2. tested annotation on phpstorm 7. not ide ready feature?
this worked me in phpstorm 9. maybe should try upgrading: https://www.jetbrains.com/phpstorm/download/
Comments
Post a Comment