Skip to content

Commit 086b8af

Browse files
author
Christian Scheb
committed
Add "class" as a reserved keyword
1 parent d888bc3 commit 086b8af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ClassScanner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function getUseStatements($file)
183183
public function parseUsedEntities($file, $namespace, $fileContent, $originalFileContent)
184184
{
185185
$reservedClassKeywords = [
186-
'parent', 'self', '__class__', 'static', 'array', 'new', 'clone',
186+
'class', 'parent', 'self', '__class__', 'static', 'array', 'new', 'clone',
187187
'callable', 'string', 'int', 'float', 'bool', 'resource', 'false', 'true',
188188
'null', 'numeric', 'mixed', 'object', 'iterable', 'yield'
189189
];

0 commit comments

Comments
 (0)