Skip to content

Commit ce4bdc9

Browse files
committed
bug #461 [Validator] added reserved keywords in validateClassName method (WinterUni)
This PR was merged into the 1.0-dev branch. Discussion ---------- [Validator] added reserved keywords in validateClassName method Commits ------- 51d843a [Validator] added reserved keywords in validateClassName method
2 parents c438841 + 51d843a commit ce4bdc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Validator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)