I can tell PhpStorm about the variables

i mean some faq about comments like @param or @return, and how i can use it for global scope

3 comments
Comment actions Permalink

Please elaborate - what are you tring to achieve?..

0
Comment actions Permalink

Ok. For ex. i have file tpl.php that use some theming, and it(file) gets var $node. I wont PhpStorm to know about class of this var and not mark up it as undefined variable. Can I do this?

0
Comment actions Permalink

add
/** @var $node Type */
before 1st $node usage

0

Please sign in to leave a comment.