comparison vendor/nikic/php-parser/test/code/parser/stmt/function/byRef.test @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 5fb285c0d0e3
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 Return and pass by ref
2 -----
3 <?php
4
5 function a(&$b) {}
6 function &a($b) {}
7 -----
8 array(
9 0: Stmt_Function(
10 byRef: false
11 name: a
12 params: array(
13 0: Param(
14 type: null
15 byRef: true
16 variadic: false
17 name: b
18 default: null
19 )
20 )
21 returnType: null
22 stmts: array(
23 )
24 )
25 1: Stmt_Function(
26 byRef: true
27 name: a
28 params: array(
29 0: Param(
30 type: null
31 byRef: false
32 variadic: false
33 name: b
34 default: null
35 )
36 )
37 returnType: null
38 stmts: array(
39 )
40 )
41 )