tmysik commented on a change in pull request #2335:
URL: https://github.com/apache/netbeans/pull/2335#discussion_r481139262



##########
File path: 
php/php.editor/src/org/netbeans/modules/php/editor/verification/UnusableTypesUnhandledError.java
##########
@@ -229,6 +258,16 @@ private void checkReturnType(@NullAllowed Expression 
returnType, boolean isInUni
             } else if (type instanceof UnionType) {
                 ((UnionType) type).getTypes().forEach(unionType -> 
checkReturnType(unionType, true));
                 checkUnionType((UnionType) type);
+            } else if (type instanceof Identifier) {
+                // method, labmda funciton, and arrow function can use static 
return type

Review comment:
       Nitpick: Typos, "la[b]mda func[i]ton".
   




----------------------------------------------------------------
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.

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