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
Please sign in to leave a comment.
Hi Fotis,
Please watch this ticket: http://youtrack.jetbrains.net/issue/WI-4880?projectKey=WI
Thank you! I posted my vote!
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
@Viktor
Check comments in https://youtrack.jetbrains.com/issue/WI-41585