I'm developing an app based on Zend Framework. And I found very annoying bug(??): inspection tags doesn't work on Zend_Config objects: How can I disable inspection for this objects?
How do you define _config field? Can you add PHPDoc comment to it, something like that:
/** @var Zend_Config|stdClass */ public $_config;
The following test code (for a different Zend class though) works fine (please note -- this is inline variable, so PHPDoc is slightly different -- must include variable name).
/** @var Zend_Session_Namespace|stdClass $session */ $session = new Zend_Session_Namespace('global');
With such declaration, accessing session fields is not marked by PhpStorm anymore:
Hi Michał,
How do you define _config field? Can you add PHPDoc comment to it, something like that:
The following test code (for a different Zend class though) works fine (please note -- this is inline variable, so PHPDoc is slightly different -- must include variable name).
With such declaration, accessing session fields is not marked by PhpStorm anymore:
Yes - you were right - I had
but when I've added stdClass and it worked!
Thanks