mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-03 09:47:59 +01:00
91f6880734
The pStmts() method now also includes the leading \n, however only if the statement list is non-empty.
21 lines
334 B
Plaintext
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)
|
|
{
|
|
} |