CTRL-CLICK looks for __construct in Class

Hello,

This is driving insane and I would like to know if there is any setting I can use to solve this problem. In the following scenario.

abstract class A{
     public function __construct(){}
     public abstract function do();
}


class B extends A {
     public functino __construct(){}
     public function do(){}
}


class C extends B{
     public function do(){}
}


class D{

     public function doDo(){
          $c = new C();
          $c->do();
     }

}

When I follow the "C()" declaration I am taken to the top most parent that has an overloaded __construct(), in the above scenario it is B.
I would expect it to go to C first, shouldn't that be the case?


At the moment I use CTRL+W to highlight the class name, and CTRL+N to find it, but I feel this is a workaround.

Best Regards,
Fotis

4 comments
Comment actions Permalink

Thank you! I posted my vote!

0
Comment actions Permalink

This problem again arisen in the PHPStorm 2018.1.1 -> up until now CTRL + mouse1 click took me to the actual class, not the parental constructor, this was changed in the 9th April release again. How can I change this in a setting or similar? Thanks

0

Please sign in to leave a comment.