You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "NReib (via GitHub)" <gi...@apache.org> on 2025/03/02 02:56:20 UTC
[I] [PHP] Enum method not found [netbeans]
NReib opened a new issue, #8286:
URL: https://github.com/apache/netbeans/issues/8286
### Apache NetBeans version
Apache NetBeans 25 release candidate
### What happened
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.
### Language / Project Type / NetBeans Component
_No response_
### How to reproduce
x
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Mageia
### JDK
x
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
_No response_
### Are you willing to submit a pull request?
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] [PHP] Enum method not found [netbeans]
Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 closed issue #8286: [PHP] Enum method not found
URL: https://github.com/apache/netbeans/issues/8286
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists