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