Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/test/code/parser/stmt/function/variadicDefaultValue.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 Invalid variadic function | |
2 ----- | |
3 <?php | |
4 function foo(...$foo = []) {} | |
5 ----- | |
6 Variadic parameter cannot have a default value from 2:24 to 2:25 | |
7 array( | |
8 0: Stmt_Function( | |
9 byRef: false | |
10 name: foo | |
11 params: array( | |
12 0: Param( | |
13 type: null | |
14 byRef: false | |
15 variadic: true | |
16 name: foo | |
17 default: Expr_Array( | |
18 items: array( | |
19 ) | |
20 ) | |
21 ) | |
22 ) | |
23 returnType: null | |
24 stmts: array( | |
25 ) | |
26 ) | |
27 ) |