junichi11 opened a new pull request, #8117: URL: https://github.com/apache/netbeans/pull/8117
- https://github.com/apache/netbeans/issues/8035 - https://wiki.php.net/rfc#php_84 - https://wiki.php.net/todo/php84 ### PHP 8.4 Support: Add PHP 8.4 to the PhpVersion - Add PHP 8.4 - Fix the available periods  ### new MyClass()->method() without parentheses (Part 1) - Fix the gramar file(`ASTPHP5Parser.cup`) - Add the `PHP84UnhandledError` - Add unit tests for the parser Example: ```php new Example()->method(); new $class()?->method(); new Example()::staticMethod1()::CONSTANT; new (trim(' Example '))()::staticMethod1()->field; new Example()::{'CONSTANT'}; new Example()(); new $class()(); new Example()['key']; new $class()['key']; new (trim(' Example '))()['key']; // anonymous classes echo new class { const CONSTANT = 'constant'; }::CONSTANT; new class { public function method() {} }->method(); new class () implements ArrayAccess { }['key']; ``` PHP 8.4  PHP 8.3  ### new MyClass()->method() without parentheses (Part 2) - Fix the formatter - Add `Other` to spaces within parentheses option e.g. `($a + $b);`, `new (trim(' Example '))()->field;` - Add/Fix unit tests  ### new MyClass()->method() without parentheses (Part 3) - Fix "Go to Declaration" & "Mark Occurrences" - Add unit tests ### new MyClass()->method() without parentheses (Part 4) - Fix the `UnusedVariableHint` - Add a unit test ### new MyClass()->method() without parentheses (Part 5) - Fix Code Completion feature - Add unit tests Note: The following case is not supported yet. The statement is broken. (it has a syntax error.) So, the anonymous class is not parsed correctly. i.e. We can't get members. We have to sanitize an error part. ```php echo new class() { public const string CONSTANT = "constant"; }::^ ``` ### new MyClass()->method() without parentheses (Part 6) - Add a unit test for the navigator -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
