Open
Description
Looks the current version 0.5.3 does cannot handle new PHP 8.4 syntax with class methods without extra parentheses
$name = (new ReflectionClass($objectOrClass))->getShortName();
into
$name = new ReflectionClass($objectOrClass)->getShortName();
The moment the shortened syntax is present, php-parser (3.1.4) library throws an error.
There is pending pull request on the library
glayzzle/php-parser#1145