1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-15 02:47:04 +01:00
PHP-Parser/test/code/stmt/function/param.test
2011-11-27 11:20:35 +01:00

73 lines
1.5 KiB
Plaintext

Function parameters
-----
<?php
function a($b, &$c, array $d, A $e, $f = 'g', H &$i = 'j') {}
function &a() {}
-----
array(
0: Stmt_Function(
byRef: false
params: array(
0: Param(
name: b
default: null
type: null
byRef: false
)
1: Param(
name: c
default: null
type: null
byRef: true
)
2: Param(
name: d
default: null
type: array
byRef: false
)
3: Param(
name: e
default: null
type: Name(
parts: array(
0: A
)
)
byRef: false
)
4: Param(
name: f
default: Scalar_String(
value: g
)
type: null
byRef: false
)
5: Param(
name: i
default: Scalar_String(
value: j
)
type: Name(
parts: array(
0: H
)
)
byRef: true
)
)
stmts: array(
)
name: a
)
1: Stmt_Function(
byRef: true
params: array(
)
stmts: array(
)
name: a
)
)