1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-02 17:28:27 +01:00
PHP-Parser/test/code/prettyPrinter/expr/shortArraySyntax.test
Nikita Popov aa199120c7 Add kind attribute for arrays
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.
2016-03-09 21:31:54 +01:00

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'];