This website requires JavaScript.
Explore
Help
Sign In
danog
/
PHP-Parser
Watch
1
Star
0
Fork
0
You've already forked PHP-Parser
mirror of
https://github.com/danog/PHP-Parser.git
synced
2024-12-12 09:29:47 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
bb87e28e7d
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