1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-12 01:19:47 +01:00
PHP-Parser/test/code/prettyPrinter/param.test
nikic 91f6880734 Improve pretty printing of empty statement lists
The pStmts() method now also includes the leading \n, however only
if the statement list is non-empty.
2014-03-27 12:31:21 +01:00

21 lines
334 B
Plaintext

Function parameters
-----
<?php
function test($a, &$b, Type $c, Type &$c, Type &... $d) {}
function test(... $foo) {}
function test(Type ... $foo) {}
function test(&... $foo) {}
-----
function test($a, &$b, Type $c, Type &$c, Type &... $d)
{
}
function test(... $foo)
{
}
function test(Type ... $foo)
{
}
function test(&... $foo)
{
}