forked from MehediDracula/PHP-Namespace-Resolver
-
-
Notifications
You must be signed in to change notification settings - Fork 2
php8.4 - new without parentheses #16
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
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