Skip to content

Commit f6fb6cf

Browse files
committed
Update list of keywords with scalar types
1 parent e83f5d0 commit f6fb6cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
final class Utils
2222
{
2323
private const KEYWORD_COMPARISON = false;
24-
public const RESERVED_KEYWORDS = ['__halt_compiler', 'abstract', 'and', 'array', 'as', 'break', 'callable', 'case', 'catch', 'class', 'clone', 'const', 'continue', 'declare', 'default', 'die', 'do', 'echo', 'else', 'elseif', 'empty', 'enddeclare', 'endfor', 'endforeach', 'endif', 'endswitch', 'endwhile', 'eval', 'exit', 'extends', 'final', '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', 'self', 'parent', 'object'];
24+
public const RESERVED_KEYWORDS = ['__halt_compiler', 'abstract', 'and', 'array', 'as', 'break', 'callable', 'case', 'catch', 'class', 'clone', 'const', 'continue', 'declare', 'default', 'die', 'do', 'echo', 'else', 'elseif', 'empty', 'enddeclare', 'endfor', 'endforeach', 'endif', 'endswitch', 'endwhile', 'eval', 'exit', 'extends', 'final', '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', 'self', 'parent', 'object', 'int', 'float', 'string', 'true', 'false', 'null', 'void', 'iterable', 'mixed', 'never'];
2525
public const CLASS_NAME_REPLACE = ['{' => ' ', '}' => ' ', '-' => '_', '$' => '_', '+' => '_', '*' => '_', '.' => '_', ';' => '_', '=' => '_', ' ' => '_'];
2626
public const CLEAN_UP_STRING_REPLACE = ['{' => ' ', '}' => ' ', '-' => '_', '$' => '_', '+' => '_', '*' => '_', '.' => '_', ';' => '_', '=' => '_', ' ' => '_', '/' => '_', '\\' => '_'];
2727

0 commit comments

Comments
 (0)