You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following 2 enums should demonstrate the Problem
namespace test;
enum TestA{
case X;
public function get(string $param): string{
return '';
}
}
namespace test;
enum TestB{
case X;
public function get(): string{
return '';
}
}
...
\test\TestA::X->get('xxx');
Now 2 things are wrong: we cannot go to declaration of method "get" and Ctrl + P does not work there either (Show param list).
Apparently in VariousUtils.java extractVariableTypeFromVariableBase the unqualified Classname is determined. If we change it to qualified Name the behaviour will be as expected. For StaticMethodInvocation the Qualified name is already used, so I assume there would be no harm in doing the same here.
Activity
[apacheGH-8286] Fix Go to Declaration for an enum method using an FQ âĶ
[apacheGH-8286] Fix Go to Declaration for an enum method using an FQ âĶ
[apacheGH-8286] Fix Go to Declaration for an enum method using an FQ âĶ
[apacheGH-8286] Fix Go to Declaration for an enum method using an FQ âĶ
[apacheGH-8286] Fix Go to Declaration for an enum method using an FQ âĶ
Merge pull request #8287 from NReib/B8286