@@ -526,7 +526,7 @@ function_declaration_statement:
526526 function returns_ref T_STRING backup_doc_comment ' (' parameter_list ' )' return_type
527527 backup_fn_flags ' {' inner_statement_list ' }' backup_fn_flags
528528 { $$ = zend_ast_create_decl(ZEND_AST_FUNC_DECL, $2 | $13 , $1 , $4 ,
529- zend_ast_get_str ($3 ), $6, NULL, $11, $8); CG(extra_fn_flags) = $9 ; }
529+ zend_ast_get_str ($3 ), $6, NULL, $11, $8, NULL ); CG(extra_fn_flags) = $9 ; }
530530;
531531
532532is_reference :
@@ -542,10 +542,10 @@ is_variadic:
542542class_declaration_statement :
543543 class_modifiers T_CLASS { $<num>$ = CG(zend_lineno); }
544544 T_STRING extends_from implements_list backup_doc_comment ' {' class_statement_list ' }'
545- { $$ = zend_ast_create_decl(ZEND_AST_CLASS, $1 , $<num>3 , $7 , zend_ast_get_str($4 ), $5 , $6 , $9 , NULL ); }
545+ { $$ = zend_ast_create_decl(ZEND_AST_CLASS, $1 , $<num>3 , $7 , zend_ast_get_str($4 ), $5 , $6 , $9 , NULL , NULL ); }
546546 | T_CLASS { $<num>$ = CG(zend_lineno); }
547547 T_STRING extends_from implements_list backup_doc_comment ' {' class_statement_list ' }'
548- { $$ = zend_ast_create_decl(ZEND_AST_CLASS, 0 , $<num>2 , $6 , zend_ast_get_str($3 ), $4 , $5 , $8 , NULL ); }
548+ { $$ = zend_ast_create_decl(ZEND_AST_CLASS, 0 , $<num>2 , $6 , zend_ast_get_str($3 ), $4 , $5 , $8 , NULL , NULL ); }
549549;
550550
551551class_modifiers :
@@ -562,13 +562,13 @@ class_modifier:
562562trait_declaration_statement :
563563 T_TRAIT { $<num>$ = CG(zend_lineno); }
564564 T_STRING backup_doc_comment ' {' class_statement_list ' }'
565- { $$ = zend_ast_create_decl(ZEND_AST_CLASS, ZEND_ACC_TRAIT, $<num>2 , $4 , zend_ast_get_str($3 ), NULL , NULL , $6 , NULL ); }
565+ { $$ = zend_ast_create_decl(ZEND_AST_CLASS, ZEND_ACC_TRAIT, $<num>2 , $4 , zend_ast_get_str($3 ), NULL , NULL , $6 , NULL , NULL ); }
566566;
567567
568568interface_declaration_statement :
569569 T_INTERFACE { $<num>$ = CG(zend_lineno); }
570570 T_STRING interface_extends_list backup_doc_comment ' {' class_statement_list ' }'
571- { $$ = zend_ast_create_decl(ZEND_AST_CLASS, ZEND_ACC_INTERFACE, $<num>2 , $5 , zend_ast_get_str($3 ), NULL , $4 , $7 , NULL ); }
571+ { $$ = zend_ast_create_decl(ZEND_AST_CLASS, ZEND_ACC_INTERFACE, $<num>2 , $5 , zend_ast_get_str($3 ), NULL , $4 , $7 , NULL , NULL ); }
572572;
573573
574574extends_from :
@@ -795,7 +795,7 @@ attributed_class_statement:
795795 | method_modifiers function returns_ref identifier backup_doc_comment ' (' parameter_list ' )'
796796 return_type backup_fn_flags method_body backup_fn_flags
797797 { $$ = zend_ast_create_decl(ZEND_AST_METHOD, $3 | $1 | $12 , $2 , $5 ,
798- zend_ast_get_str ($4 ), $7, NULL, $11, $9); CG(extra_fn_flags) = $10 ; }
798+ zend_ast_get_str ($4 ), $7, NULL, $11, $9, NULL ); CG(extra_fn_flags) = $10 ; }
799799
800800class_statement :
801801 attributed_class_statement { $$ = $1 ; }
@@ -933,7 +933,7 @@ anonymous_class:
933933 extends_from implements_list backup_doc_comment ' {' class_statement_list ' }' {
934934 zend_ast *decl = zend_ast_create_decl(
935935 ZEND_AST_CLASS, ZEND_ACC_ANON_CLASS, $<num>2 , $6 , NULL ,
936- $4 , $5 , $8 , NULL );
936+ $4 , $5 , $8 , NULL , NULL );
937937 $$ = zend_ast_create(ZEND_AST_NEW, decl, $3 );
938938 }
939939;
@@ -1077,11 +1077,11 @@ inline_function:
10771077 backup_fn_flags ' {' inner_statement_list ' }' backup_fn_flags
10781078 { $$ = zend_ast_create_decl(ZEND_AST_CLOSURE, $2 | $13 , $1 , $3 ,
10791079 zend_string_init (" {closure}" , sizeof (" {closure}" ) - 1, 0),
1080- $5, $7, $11, $8); CG(extra_fn_flags) = $9 ; }
1080+ $5, $7, $11, $8, NULL ); CG(extra_fn_flags) = $9 ; }
10811081 | fn returns_ref ' (' parameter_list ' )' return_type backup_doc_comment T_DOUBLE_ARROW backup_fn_flags backup_lex_pos expr backup_fn_flags
10821082 { $$ = zend_ast_create_decl(ZEND_AST_ARROW_FUNC, $2 | $12 , $1 , $7 ,
10831083 zend_string_init (" {closure}" , sizeof (" {closure}" ) - 1, 0), $4, NULL,
1084- zend_ast_create(ZEND_AST_RETURN, $11 ), $6);
1084+ zend_ast_create(ZEND_AST_RETURN, $11 ), $6, NULL );
10851085 ((zend_ast_decl *) $$ )->lex_pos = $10 ;
10861086 CG (extra_fn_flags) = $9; }
10871087;
0 commit comments