Skip to content

Commit 6a08718

Browse files
authored
Drop unused priority argument from zend_ast_export_var() (GH-21096)
1 parent d1c1a9f commit 6a08718

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Zend/zend_ast.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,7 @@ static ZEND_COLD bool zend_ast_var_needs_braces(char ch)
17181718
return ch == '[' || zend_ast_valid_var_char(ch);
17191719
}
17201720

1721-
static ZEND_COLD void zend_ast_export_var(smart_str *str, zend_ast *ast, int priority, int indent)
1721+
static ZEND_COLD void zend_ast_export_var(smart_str *str, zend_ast *ast, int indent)
17221722
{
17231723
if (ast->kind == ZEND_AST_ZVAL) {
17241724
zval *zv = zend_ast_get_zval(ast);
@@ -2417,7 +2417,7 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
24172417
/* 1 child node */
24182418
case ZEND_AST_VAR:
24192419
smart_str_appendc(str, '$');
2420-
zend_ast_export_var(str, ast->child[0], 0, indent);
2420+
zend_ast_export_var(str, ast->child[0], indent);
24212421
break;
24222422
case ZEND_AST_CONST:
24232423
zend_ast_export_ns_name(str, ast->child[0], 0, indent);
@@ -2532,12 +2532,12 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
25322532
case ZEND_AST_NULLSAFE_PROP:
25332533
zend_ast_export_ex(str, ast->child[0], 0, indent);
25342534
smart_str_appends(str, ast->kind == ZEND_AST_NULLSAFE_PROP ? "?->" : "->");
2535-
zend_ast_export_var(str, ast->child[1], 0, indent);
2535+
zend_ast_export_var(str, ast->child[1], indent);
25362536
break;
25372537
case ZEND_AST_STATIC_PROP:
25382538
zend_ast_export_ns_name(str, ast->child[0], 0, indent);
25392539
smart_str_appends(str, "::$");
2540-
zend_ast_export_var(str, ast->child[1], 0, indent);
2540+
zend_ast_export_var(str, ast->child[1], indent);
25412541
break;
25422542
case ZEND_AST_CALL: {
25432543
zend_ast *left = ast->child[0];
@@ -2857,15 +2857,15 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
28572857
case ZEND_AST_NULLSAFE_METHOD_CALL:
28582858
zend_ast_export_ex(str, ast->child[0], 0, indent);
28592859
smart_str_appends(str, ast->kind == ZEND_AST_NULLSAFE_METHOD_CALL ? "?->" : "->");
2860-
zend_ast_export_var(str, ast->child[1], 0, indent);
2860+
zend_ast_export_var(str, ast->child[1], indent);
28612861
smart_str_appendc(str, '(');
28622862
zend_ast_export_ex(str, ast->child[2], 0, indent);
28632863
smart_str_appendc(str, ')');
28642864
break;
28652865
case ZEND_AST_STATIC_CALL:
28662866
zend_ast_export_ns_name(str, ast->child[0], 0, indent);
28672867
smart_str_appends(str, "::");
2868-
zend_ast_export_var(str, ast->child[1], 0, indent);
2868+
zend_ast_export_var(str, ast->child[1], indent);
28692869
smart_str_appendc(str, '(');
28702870
zend_ast_export_ex(str, ast->child[2], 0, indent);
28712871
smart_str_appendc(str, ')');
@@ -2901,7 +2901,7 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
29012901
zend_ast_export_catch_name_list(str, zend_ast_get_list(ast->child[0]), indent);
29022902
if (ast->child[1]) {
29032903
smart_str_appends(str, " $");
2904-
zend_ast_export_var(str, ast->child[1], 0, indent);
2904+
zend_ast_export_var(str, ast->child[1], indent);
29052905
}
29062906
smart_str_appends(str, ") {\n");
29072907
zend_ast_export_stmt(str, ast->child[2], indent + 1);

0 commit comments

Comments
 (0)