junichi11 commented on code in PR #6873:
URL: https://github.com/apache/netbeans/pull/6873#discussion_r1434756841


##########
php/php.editor/src/org/netbeans/modules/php/editor/completion/PHPCodeCompletion.java:
##########
@@ -717,17 +717,17 @@ private void autoCompleteMethodName(ParserResult info, 
int caretOffset, final PH
             String fullyQualifiedClassName = 
VariousUtils.qualifyTypeNames(clsName, request.anchor, namespaceScope);
             if (fullyQualifiedClassName != null) {
                 final FileObject fileObject = 
request.result.getSnapshot().getSource().getFileObject();
-                final ElementFilter classFilter = ElementFilter.allOf(
+                final ElementFilter typeFilter = ElementFilter.allOf(
                         ElementFilter.forFiles(fileObject), 
ElementFilter.allOf(superTypeIndices));
-                Set<ClassElement> classes = 
classFilter.filter(request.index.getClasses(NameKind.exact(fullyQualifiedClassName)));
-                for (ClassElement classElement : classes) {
+                Set<TypeElement> types = 
typeFilter.filter(request.index.getTypes(NameKind.exact(fullyQualifiedClassName)));

Review Comment:
   Because Enums are missing.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to