mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-11 17:09:41 +01:00
aa199120c7
To distinguish array() and [] syntax. The pretty printer respects this attribute. The shortArraySyntax pretty printer option acts as a default in case the attribute is not specified.
11 lines
129 B
Plaintext
11 lines
129 B
Plaintext
Short array syntax
|
|
-----
|
|
<?php
|
|
|
|
[];
|
|
array(1, 2, 3);
|
|
['a' => 'b', 'c' => 'd'];
|
|
-----
|
|
[];
|
|
array(1, 2, 3);
|
|
['a' => 'b', 'c' => 'd']; |