@@ -1871,7 +1871,7 @@ static ZEND_COLD void zend_ast_export_class_no_header(smart_str *str, zend_ast_d
1871
1871
smart_str_appends (str , " {\n" );
1872
1872
zend_ast_export_stmt (str , decl -> child [2 ], indent + 1 );
1873
1873
zend_ast_export_indent (str , indent );
1874
- smart_str_appends (str , "}" );
1874
+ smart_str_appendc (str , '}' );
1875
1875
}
1876
1876
1877
1877
static ZEND_COLD void zend_ast_export_attribute_group (smart_str * str , zend_ast * ast , int indent ) {
@@ -1899,7 +1899,7 @@ static ZEND_COLD void zend_ast_export_attributes(smart_str *str, zend_ast *ast,
1899
1899
for (i = 0 ; i < list -> children ; i ++ ) {
1900
1900
smart_str_appends (str , "#[" );
1901
1901
zend_ast_export_attribute_group (str , list -> child [i ], indent );
1902
- smart_str_appends (str , "]" );
1902
+ smart_str_appendc (str , ']' );
1903
1903
1904
1904
if (newlines ) {
1905
1905
smart_str_appendc (str , '\n' );
@@ -2060,7 +2060,7 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
2060
2060
case ZEND_AST_OP_ARRAY :
2061
2061
smart_str_appends (str , "Closure(" );
2062
2062
smart_str_append (str , zend_ast_get_op_array (ast )-> op_array -> function_name );
2063
- smart_str_appends (str , ")" );
2063
+ smart_str_appendc (str , ')' );
2064
2064
break ;
2065
2065
case ZEND_AST_CONSTANT_CLASS :
2066
2066
smart_str_appendl (str , "__CLASS__" , sizeof ("__CLASS__" )- 1 );
@@ -2427,9 +2427,9 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
2427
2427
case ZEND_AST_CALL : {
2428
2428
zend_ast * left = ast -> child [0 ];
2429
2429
if (left -> kind == ZEND_AST_ARROW_FUNC || left -> kind == ZEND_AST_CLOSURE ) {
2430
- smart_str_appends (str , "(" );
2430
+ smart_str_appendc (str , '(' );
2431
2431
zend_ast_export_ns_name (str , left , 0 , indent );
2432
- smart_str_appends (str , ")" );
2432
+ smart_str_appendc (str , ')' );
2433
2433
} else {
2434
2434
zend_ast_export_ns_name (str , left , 0 , indent );
2435
2435
}
@@ -2679,9 +2679,9 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
2679
2679
smart_str_appends (str , " {\n" );
2680
2680
zend_ast_export_ex (str , ast -> child [1 ], 0 , indent + 1 );
2681
2681
zend_ast_export_indent (str , indent );
2682
- smart_str_appends (str , "}" );
2682
+ smart_str_appendc (str , '}' );
2683
2683
} else {
2684
- smart_str_appends (str , ";" );
2684
+ smart_str_appendc (str , ';' );
2685
2685
}
2686
2686
break ;
2687
2687
case ZEND_AST_TRAIT_PRECEDENCE :
0 commit comments