This is an automated email from the ASF dual-hosted git repository. junichi11 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push: new 85d5c0c17b Fixes unhandled ExpressionArrayAccess in PHP Editor new 6bf270e71b Merge pull request #4308 from KacerCZ/php-expression-array-access-fix 85d5c0c17b is described below commit 85d5c0c17b2142e6bc9eda1304672a090170955b Author: Tomas Prochazka <ka...@razdva.cz> AuthorDate: Thu Jun 30 22:35:06 2022 +0200 Fixes unhandled ExpressionArrayAccess in PHP Editor --- php/php.editor/src/org/netbeans/modules/php/editor/CodeUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php/php.editor/src/org/netbeans/modules/php/editor/CodeUtils.java b/php/php.editor/src/org/netbeans/modules/php/editor/CodeUtils.java index c6e2328e98..cd55d90131 100644 --- a/php/php.editor/src/org/netbeans/modules/php/editor/CodeUtils.java +++ b/php/php.editor/src/org/netbeans/modules/php/editor/CodeUtils.java @@ -43,6 +43,7 @@ import org.netbeans.modules.php.editor.parser.astnodes.ClassDeclaration; import org.netbeans.modules.php.editor.parser.astnodes.ClassInstanceCreation; import org.netbeans.modules.php.editor.parser.astnodes.ClassName; import org.netbeans.modules.php.editor.parser.astnodes.Expression; +import org.netbeans.modules.php.editor.parser.astnodes.ExpressionArrayAccess; import org.netbeans.modules.php.editor.parser.astnodes.FieldAccess; import org.netbeans.modules.php.editor.parser.astnodes.FormalParameter; import org.netbeans.modules.php.editor.parser.astnodes.FunctionDeclaration; @@ -288,6 +289,8 @@ public final class CodeUtils { } else if (typeName instanceof NullableType) { NullableType nullableType = (NullableType) typeName; return NULLABLE_TYPE_PREFIX + extractQualifiedName(nullableType.getType()); + } else if (typeName instanceof ExpressionArrayAccess) { + return extractQualifiedName(((ExpressionArrayAccess) typeName).getExpression()); } else if (typeName instanceof UnionType) { UnionType unionType = (UnionType) typeName; StringBuilder sb = new StringBuilder(); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists