mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-07 20:00:50 +00:00
727b9f46f0
bfa1891c50
[cleanup] Remove 73 unused public methods (#3245)
17 lines
413 B
PHP
17 lines
413 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Core\Php;
|
|
|
|
final class ReservedKeywordAnalyzer
|
|
{
|
|
/**
|
|
* @var string[]
|
|
*/
|
|
private const NATIVE_VARIABLE_NAMES = ['_ENV', '_POST', '_GET', '_COOKIE', '_SERVER', '_FILES', '_REQUEST', '_SESSION', 'GLOBALS'];
|
|
public function isNativeVariable(string $name) : bool
|
|
{
|
|
return \in_array($name, self::NATIVE_VARIABLE_NAMES, \true);
|
|
}
|
|
}
|