Skip to content

Commit b4110e3

Browse files
committed
fix: "Label followed by a declaration is a C23 extension" warn
1 parent 4960d30 commit b4110e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Zend/zend_ast.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2232,7 +2232,7 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
22322232
smart_str_appends(str, "::$");
22332233
zend_ast_export_var(str, ast->child[1], 0, indent);
22342234
break;
2235-
case ZEND_AST_CALL:
2235+
case ZEND_AST_CALL: {
22362236
zend_ast *left = ast->child[0];
22372237
if (left->kind == ZEND_AST_ARROW_FUNC || left->kind == ZEND_AST_CLOSURE) {
22382238
smart_str_appends(str, "(");
@@ -2245,6 +2245,7 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
22452245
zend_ast_export_ex(str, ast->child[1], 0, indent);
22462246
smart_str_appendc(str, ')');
22472247
break;
2248+
}
22482249
case ZEND_AST_PARENT_PROPERTY_HOOK_CALL:
22492250
smart_str_append(str, Z_STR_P(zend_ast_get_zval(ast->child[0])));
22502251
smart_str_appendc(str, '(');

0 commit comments

Comments
 (0)