Skip to content

Commit f6a011c

Browse files
authored
lowercasing special chars because we compare to a lowercase string
1 parent ec6ef77 commit f6a011c

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
@@ -42,8 +42,8 @@ public static function validateClassName(string $className, string $errorMessage
4242
'static', 'switch', 'throw', 'trait', 'try', 'unset',
4343
'use', 'var', 'while', 'xor',
4444
'int', 'float', 'bool', 'string', 'true', 'false', 'null', 'void',
45-
'iterable', 'object', '__FILE__', '__LINE__', '__DIR__', '__FUNCTION__', '__CLASS__',
46-
'__METHOD__', '__NAMESPACE__', '__TRAIT__', 'self', 'parent',
45+
'iterable', 'object', '__file__', '__line__', '__dir__', '__function__', '__class__',
46+
'__method__', '__namespace__', '__trait__', 'self', 'parent',
4747
];
4848

4949
foreach ($pieces as $piece) {

0 commit comments

Comments
 (0)