We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2920fcf commit 73f9ca1Copy full SHA for 73f9ca1
Zend/zend_language_parser.y
@@ -882,10 +882,11 @@ type_expr_without_static:
882
| intersection_type_without_static { $$ = $1; }
883
;
884
885
+//TODO add generic type params to AST
886
type_without_static:
- T_ARRAY { $$ = zend_ast_create_ex(ZEND_AST_TYPE, IS_ARRAY); }
887
+ T_ARRAY generic_type_parameters { $$ = zend_ast_create_ex(ZEND_AST_TYPE, IS_ARRAY); }
888
| T_CALLABLE { $$ = zend_ast_create_ex(ZEND_AST_TYPE, IS_CALLABLE); }
- | name { $$ = $1; }
889
+ | name generic_type_parameters { $$ = $1; }
890
891
892
union_type_without_static_element:
0 commit comments