Skip to content

Commit 311817f

Browse files
committed
Fix ast export in array
1 parent e319362 commit 311817f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_ast.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,6 +1759,8 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
17591759
zend_ast_export_ex(str, ast->child[1], 80, indent);
17601760
smart_str_appends(str, " => ");
17611761
}
1762+
if (ast->attr)
1763+
smart_str_appendc(str, '&');
17621764
zend_ast_export_ex(str, ast->child[0], 80, indent);
17631765
break;
17641766
case ZEND_AST_NEW:

0 commit comments

Comments
 (0)