php-parser/test/code/prettyPrinter/expr/firstClassCallables.test
Nikita Popov 13549aa794 Add support for first-class callables
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?
2021-09-03 17:18:40 +02:00

11 lines
126 B
Plaintext

First-class callables
-----
<?php
foo(...);
$this->foo(...);
A::foo(...);
-----
!!php7
foo(...);
$this->foo(...);
A::foo(...);