mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-11 16:49:43 +01:00
13549aa794
I'm somewhat unsure about the AST structure here. VariadicPlaceholder is not a general expression. Maybe Arg->expr should be Expr|VariadicPlaceholder? Or possibly the call arguments should be an array of Arg|VariadicPlaceholder?
11 lines
126 B
Plaintext
11 lines
126 B
Plaintext
First-class callables
|
|
-----
|
|
<?php
|
|
foo(...);
|
|
$this->foo(...);
|
|
A::foo(...);
|
|
-----
|
|
!!php7
|
|
foo(...);
|
|
$this->foo(...);
|
|
A::foo(...); |