@@ -34,13 +34,13 @@ public static function validateClassName(string $className, string $errorMessage
3434 'clone ' , 'const ' , 'continue ' , 'declare ' , 'default ' , 'die ' , 'do ' ,
3535 'echo ' , 'else ' , 'elseif ' , 'empty ' , 'enddeclare ' , 'endfor ' ,
3636 'endforeach ' , 'endif ' , 'endswitch ' , 'endwhile ' , 'eval ' ,
37- 'exit ' , 'extends ' , 'final ' , 'for ' , 'foreach ' , 'function ' ,
37+ 'exit ' , 'extends ' , 'final ' , 'finally ' , ' for ' , 'foreach ' , 'function ' ,
3838 'global ' , 'goto ' , 'if ' , 'implements ' , 'include ' ,
3939 'include_once ' , 'instanceof ' , 'insteadof ' , 'interface ' , 'isset ' ,
4040 'list ' , 'namespace ' , 'new ' , 'or ' , 'print ' , 'private ' ,
4141 'protected ' , 'public ' , 'require ' , 'require_once ' , 'return ' ,
4242 'static ' , 'switch ' , 'throw ' , 'trait ' , 'try ' , 'unset ' ,
43- 'use ' , 'var ' , 'while ' , 'xor ' ,
43+ 'use ' , 'var ' , 'while ' , 'xor ' , ' yield ' ,
4444 'int ' , 'float ' , 'bool ' , 'string ' , 'true ' , 'false ' , 'null ' , 'void ' ,
4545 'iterable ' , 'object ' , '__file__ ' , '__line__ ' , '__dir__ ' , '__function__ ' , '__class__ ' ,
4646 '__method__ ' , '__namespace__ ' , '__trait__ ' , 'self ' , 'parent ' ,
0 commit comments