1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-03 09:47:59 +01:00
PHP-Parser/test/code/parser/stmt/function/byRef.test
2020-06-27 17:57:47 +02:00

51 lines
998 B
Plaintext

Return and pass by ref
-----
<?php
function a(&$b) {}
function &a($b) {}
-----
array(
0: Stmt_Function(
byRef: false
name: Identifier(
name: a
)
params: array(
0: Param(
flags: 0
type: null
byRef: true
variadic: false
var: Expr_Variable(
name: b
)
default: null
)
)
returnType: null
stmts: array(
)
)
1: Stmt_Function(
byRef: true
name: Identifier(
name: a
)
params: array(
0: Param(
flags: 0
type: null
byRef: false
variadic: false
var: Expr_Variable(
name: b
)
default: null
)
)
returnType: null
stmts: array(
)
)
)