123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- PHP 7.3 trailing comma additions
- -----
- <?php
- foo($a, $b, );
- $foo->bar($a, $b, );
- Foo::bar($a, $b, );
- new Foo($a, $b, );
- unset($a, $b, );
- isset($a, $b, );
- -----
- !!php7
- array(
- 0: Stmt_Expression(
- expr: Expr_FuncCall(
- name: Name(
- parts: array(
- 0: foo
- )
- )
- args: array(
- 0: Arg(
- value: Expr_Variable(
- name: a
- )
- byRef: false
- unpack: false
- )
- 1: Arg(
- value: Expr_Variable(
- name: b
- )
- byRef: false
- unpack: false
- )
- )
- )
- )
- 1: Stmt_Expression(
- expr: Expr_MethodCall(
- var: Expr_Variable(
- name: foo
- )
- name: Identifier(
- name: bar
- )
- args: array(
- 0: Arg(
- value: Expr_Variable(
- name: a
- )
- byRef: false
- unpack: false
- )
- 1: Arg(
- value: Expr_Variable(
- name: b
- )
- byRef: false
- unpack: false
- )
- )
- )
- )
- 2: Stmt_Expression(
- expr: Expr_StaticCall(
- class: Name(
- parts: array(
- 0: Foo
- )
- )
- name: Identifier(
- name: bar
- )
- args: array(
- 0: Arg(
- value: Expr_Variable(
- name: a
- )
- byRef: false
- unpack: false
- )
- 1: Arg(
- value: Expr_Variable(
- name: b
- )
- byRef: false
- unpack: false
- )
- )
- )
- )
- 3: Stmt_Expression(
- expr: Expr_New(
- class: Name(
- parts: array(
- 0: Foo
- )
- )
- args: array(
- 0: Arg(
- value: Expr_Variable(
- name: a
- )
- byRef: false
- unpack: false
- )
- 1: Arg(
- value: Expr_Variable(
- name: b
- )
- byRef: false
- unpack: false
- )
- )
- )
- )
- 4: Stmt_Unset(
- vars: array(
- 0: Expr_Variable(
- name: a
- )
- 1: Expr_Variable(
- name: b
- )
- )
- )
- 5: Stmt_Expression(
- expr: Expr_Isset(
- vars: array(
- 0: Expr_Variable(
- name: a
- )
- 1: Expr_Variable(
- name: b
- )
- )
- )
- )
- )
|