Inspection of Zend_Config objects

Hello.

I'm developing an app based on Zend Framework. And I found very annoying bug(??): inspection tags doesn't work on Zend_Config objects:
2011-12-20-111654_3286x1200_scrot.png
How can I disable inspection for this objects?

2 comments

Hi Michał,

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:

$cusomer_id = $session->customer_id;

0

Yes - you were right - I had

  /**

    * @var Zend_Config

    */


but when I've added stdClass and it worked!

Thanks
0

Please sign in to leave a comment.