Skip to content

Commit cb64c16

Browse files
authored
zend_ast: Remove duplicated code when exporting arrays (php#22392)
Following php#22350.
1 parent c340b2c commit cb64c16

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Zend/zend_ast.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,11 +1940,10 @@ static ZEND_COLD void zend_ast_export_zval(smart_str *str, const zval *zv, int p
19401940
}
19411941
if (key) {
19421942
zend_ast_export_quoted_str(str, key);
1943-
smart_str_appends(str, " => ");
19441943
} else {
19451944
smart_str_append_long(str, idx);
1946-
smart_str_appends(str, " => ");
19471945
}
1946+
smart_str_appends(str, " => ");
19481947
zend_ast_export_zval(str, val, 0, indent);
19491948
} ZEND_HASH_FOREACH_END();
19501949
smart_str_appendc(str, ']');

0 commit comments

Comments
 (0)