This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Method declaration "public function throw" causes a syntax error unecpected: throw after: function expected: identifier, define, & example code: https://github.com/recoilphp/recoil/blob/master/src/Kernel/Listener.php:32
This actually happens when any PHP keyword is used as the function name. The code runs just fine under PHP7 though.
https://wiki.php.net/rfc/context_sensitive_lexer
*** This bug has been marked as a duplicate of bug 262141 ***