1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-11 08:59:46 +01:00
PHP-Parser/test/code/parser/stmt/function/byRef.test

42 lines
753 B
Plaintext
Raw Normal View History

2011-12-07 18:17:05 +01:00
Return and pass by ref
-----
<?php
function a(&$b) {}
function &a($b) {}
-----
array(
0: Stmt_Function(
byRef: false
name: a
2011-12-07 18:17:05 +01:00
params: array(
0: Param(
type: null
byRef: true
variadic: false
name: b
default: null
2011-12-07 18:17:05 +01:00
)
)
returnType: null
2011-12-07 18:17:05 +01:00
stmts: array(
)
)
1: Stmt_Function(
byRef: true
name: a
2011-12-07 18:17:05 +01:00
params: array(
0: Param(
type: null
byRef: false
variadic: false
name: b
default: null
2011-12-07 18:17:05 +01:00
)
)
returnType: null
2011-12-07 18:17:05 +01:00
stmts: array(
)
)
)