3 Replies Last post: Feb 1, 2013 3:58 PM by Maxim Makhankov  
Jörg Wrase Newbie 51 posts since
Sep 17, 2012
Currently Being Moderated

Jan 31, 2013 5:15 AM

PHP static private function in constructor

Hi,

 

I don't know, if this is a Problem from PHPStorm only, or I I made a mistake.

Is it allowed to use a static private function in an __constructor?

 

PHPStorm sometimes shows an error. And if I want to refactor the methodename, PHPStorm didnt find the other name.

 

This is what I got:

 

 

privatestaticfunction.png

 

Mmm - Bug? Or my fault (its not allowed to use self:: for private static functions in __constructor)

PHP shows no error - and it works ....

 

cu

Maxim Makhankov JetBrains 64 posts since
May 31, 2012
Currently Being Moderated
Jan 31, 2013 4:41 PM in response to: Jörg Wrase
Re: PHP static private function in constructor

Jörg, what is your PhpStorm version? I can't reproduce the issue nor in PhpStorm 5.0.4 neither in the latest EAP.

Is it a consistent problem?

Maxim Makhankov JetBrains 64 posts since
May 31, 2012
Currently Being Moderated
Feb 1, 2013 3:58 PM in response to: Jörg Wrase
Re: PHP static private function in constructor

Jörg, thank you!

Please, see issue WI-16435.

This bug is fixed and will be available in the next EAP.

More Like This

  • Retrieving data ...