Odd highlighting of class which calls static method

Found an odd behaviour in PhpStorm. When you call a static method and place cursor on class which makes, that call, then it highlats very oddly. Result is placed as a screenshot here in attached file.



Attachment(s):
oddHighlighting.png
11 comments
Comment actions Permalink

Hello!
What is you PhpStorm's version?

0
Comment actions Permalink

PhpStorm 2.1.2 Build 107.425

0
Comment actions Permalink

And, please, again, how do you get this highlighting? Placed cursor on Zend_Loader_Autoloader, and then?

0
Comment actions Permalink

In class 'lib/Zend/Application.php' in this part of code, but it does almost the same in other similar places,

    public function __construct( $environment, $options = null )
    {
        $this->_environment = (string) $environment;

        require_once 'Zend/Loader/Autoloader.php';
        $this->_autoloader = Zend_Loader_Autoloader::getInstance();

        if ( null !== $options )
        {
            if ( is_string( $options ) )
            {
                $options = $this->_loadConfig( $options );
            }
            elseif ( $options instanceof Zend_Config )
            {
                $options = $options->toArray();
            }
            elseif ( ! is_array( $options ) )
            {
                throw new Zend_Application_Exception( 'Invalid options provided; must be location of config file, a config object, or an array' );
            }

            $this->setOptions( $options );
        }
    }

if you place your cursor at

Zend_Loader_Autoloader::getInstance()

more precisely at

Zend_Loader_Autoloader

then it highlights as it is shown in screenshot.

Leneshka wrote:

And, please, again, how do you get this highlighting? Placed cursor on Zend_Loader_Autoloader, and then?

No then. Just placed cursor at place mentioned above.

0
Comment actions Permalink

There are a lot of bugs with strange highlighting in phpstorm like this one. You set caret on some variable and some empty lines could be highlighted for some reason...

0
Comment actions Permalink

I finally got highlighting, but it works well in my case. Failed to reproduce that bug.

0
Comment actions Permalink

Should I still create the issue on issue tracker or it might be a glitch and just wait for 2.1.3?

0
Comment actions Permalink

Well, no related changes were made in 2.1.3 (which is being published in about a hour)
And too many significant changes in 3.0 - you should wait for 3.0 EAP

0
Comment actions Permalink

I might be wrong, but wouldn't it take a lot of time? Only 2.1.3 just came out and you suggest to wait for 3.0? Or it will be very soon?

0
Comment actions Permalink

3.0 EAP will be open in two weeks.

0
Comment actions Permalink

Great. Thank you.

0

Please sign in to leave a comment.