Deeper @var annotation

I have some issues with intellisense for Zend_Framework action helpers.

Intellisense fof this simple case works fine:

/** @var $object SomeClass*/
$object->someMethod();

However, the $object has some magic methods, which are build dynamically on program execution (registered paths), co I can't use @property or @method

Is there any option to have intelisense for nested variables like this:

/** @var $this->_helper->redirector Zend_Controller_Action_Helper_Redirector */
$this->_helper->redirector->someHintHere();

I know I may do this:

$redirector = $this->_helper->redirector;
/** @var $redirector Zend_Controller_Action_Helper_Redirector */
$redirector->someHintHere();

but this breaks the magic notation idea, which is to make it short.

3 comments
Comment actions Permalink

Good idea, however this presumably will be handled by Zend Framework support in the IDE, see http://youtrack.jetbrains.net/issue/WI-1063

Still, can you please file a separate feature request to project issue tracker http://youtrack.jetbrains.net/issues/WI ?

0
Comment actions Permalink

Thanks for filing.

0

Please sign in to leave a comment.