mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-13 17:47:23 +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']; |