Skip to content

Commit a2b46b3

Browse files
committed
[EH] set $removeNumericIndex default to true
1 parent d0e8033 commit a2b46b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Helper/ShortSyntaxArray.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class ShortSyntaxArray
66
{
7-
public static function parse(array $expression, $removeNumericIndex = false, $indent = 4): string
7+
public static function parse(array $expression, $removeNumericIndex = true, $indent = 4): string
88
{
99
$object = json_decode(str_replace(['(', ')'], ['&#40', '&#41'], json_encode($expression)), true);
1010
$export = str_replace(['array (', ')', '&#40', '&#41'], ['[', ']', '(', ')'], var_export($object, true));

0 commit comments

Comments
 (0)