This website requires JavaScript.
Explore
Help
Sign In
phabel
/
php-parser
Watch
1
Star
0
Fork
0
You've already forked php-parser
mirror of
https://github.com/phabelio/PHP-Parser.git
synced
2024-12-02 17:38:19 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
79ec0bd1bd
php-parser
/
test
/
code
/
prettyPrinter
/
expr
/
shortArraySyntax.test
11 lines
129 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Add option for short array syntax in pretty printer
2015-09-21 09:12:59 +02:00
Short array syntax
-----
<?php
[];
array(1, 2, 3);
['a' => 'b', 'c' => 'd'];
-----
[];
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:30:39 +01:00
array(1, 2, 3);
Add option for short array syntax in pretty printer
2015-09-21 09:12:59 +02:00
['a' => 'b', 'c' => 'd'];
Reference in New Issue
Copy Permalink