Skip to content

Commit fe25f5b

Browse files
committed
Updated Rector to commit c1da4ecdec3bf17ff896b99540388ee564c03eb7
rectorphp/rector-src@c1da4ec [Variables] Fetch list super global variable names from PHPStan Scope::SUPERGLOBAL_VARIABLES constant (#7663)
1 parent 7ae74db commit fe25f5b

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '89b8e0734e581148261d3b206ea07002017871fb';
22+
public const PACKAGE_VERSION = 'c1da4ecdec3bf17ff896b99540388ee564c03eb7';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-11-29 20:52:58';
27+
public const RELEASE_DATE = '2025-11-29 20:53:44';
2828
/**
2929
* @var int
3030
*/

src/Php/ReservedKeywordAnalyzer.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
declare (strict_types=1);
44
namespace Rector\Php;
55

6+
use PHPStan\Analyser\Scope;
67
final class ReservedKeywordAnalyzer
78
{
8-
/**
9-
* @var string[]
10-
*/
11-
private const NATIVE_VARIABLE_NAMES = ['_ENV', '_POST', '_GET', '_COOKIE', '_SERVER', '_FILES', '_REQUEST', '_SESSION', 'GLOBALS'];
129
public function isNativeVariable(string $name): bool
1310
{
14-
return in_array($name, self::NATIVE_VARIABLE_NAMES, \true);
11+
return in_array($name, Scope::SUPERGLOBAL_VARIABLES, \true);
1512
}
1613
}

0 commit comments

Comments
 (0)