terax6669 opened a new issue, #7322: URL: https://github.com/apache/netbeans/issues/7322
### Apache NetBeans version Apache NetBeans 21 ### What happened Valid PHP code shows error:  ### Language / Project Type / NetBeans Component PHP ### How to reproduce ```php <?php class Foo { private const VALIDATION_FUNCTIONS = [ 'bool' => 'is_bool', ]; private function verifyTypes(string $type, mixed $value, array &$invalidTypes, int $level = 0): bool { return isset(self::VALIDATION_FUNCTIONS[$type]) ? self::VALIDATION_FUNCTIONS[$type]($value) : $value instanceof $type; } } ``` ### Did this work correctly in an earlier version? No / Don't know ### Operating System macOS 14.4.1 ### JDK openjdk version "21.0.2" 2024-01-16 ### Apache NetBeans packaging Apache NetBeans provided installer ### Anything else _No response_ ### Are you willing to submit a pull request? No -- 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
