diff --git a/src/Validator.php b/src/Validator.php index 21e3b2d08..6ea975630 100644 --- a/src/Validator.php +++ b/src/Validator.php @@ -34,13 +34,13 @@ public static function validateClassName(string $className, string $errorMessage 'clone', 'const', 'continue', 'declare', 'default', 'die', 'do', 'echo', 'else', 'elseif', 'empty', 'enddeclare', 'endfor', 'endforeach', 'endif', 'endswitch', 'endwhile', 'eval', - 'exit', 'extends', 'final', 'for', 'foreach', 'function', + 'exit', 'extends', 'final', 'finally', 'for', 'foreach', 'function', 'global', 'goto', 'if', 'implements', 'include', 'include_once', 'instanceof', 'insteadof', 'interface', 'isset', 'list', 'namespace', 'new', 'or', 'print', 'private', 'protected', 'public', 'require', 'require_once', 'return', 'static', 'switch', 'throw', 'trait', 'try', 'unset', - 'use', 'var', 'while', 'xor', + 'use', 'var', 'while', 'xor', 'yield', 'int', 'float', 'bool', 'string', 'true', 'false', 'null', 'void', 'iterable', 'object', '__file__', '__line__', '__dir__', '__function__', '__class__', '__method__', '__namespace__', '__trait__', 'self', 'parent',