1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-11 17:09:41 +01:00
PHP-Parser/test/code/parser/expr/closure_use_trailing_comma.test

27 lines
533 B
Plaintext

Trailing comma in use list
-----
<?php
function() use($a,) {};
-----
!!php7
array(
0: Stmt_Expression(
expr: Expr_Closure(
static: false
byRef: false
params: array(
)
uses: array(
0: Expr_ClosureUse(
var: Expr_Variable(
name: a
)
byRef: false
)
)
returnType: null
stmts: array(
)
)
)
)