When I try to instantiate some class and call its method immediatelly without variable using then PHPParser marks it as invalid code but it is working well.
My source code is:
--------------------- begin code --------------------
class Index{
public function run(){
return true;
}
}
(new Index())->run();
--------------------- end code --------------------
There is "';' expected" error message in the error list.
jEdit version 5.0.0
PHPParser 2.0.1
Gentoo linux