Type hinting array keys

Hi!

If I define some keys in an array like this

$r = array(); $r['test'] = "test2";


Phpstorm knows afterwards the key "'test", if I type

$r['']


and press Ctrl + Space between the quotes.


Is it possible to defined these keys through

* @var $r array['test']

1 comment
Comment actions Permalink

Hi there,

Is it possible to defined these keys through

* @var $r array['test']

It's not currently possible.

0

Please sign in to leave a comment.