diff --git a/rules-tests/CodeQuality/Rector/MethodCall/AssertIssetToSpecificMethodRector/Fixture/skip_superglobals.php.inc b/rules-tests/CodeQuality/Rector/MethodCall/AssertIssetToSpecificMethodRector/Fixture/skip_superglobals.php.inc new file mode 100644 index 00000000..085cc2c2 --- /dev/null +++ b/rules-tests/CodeQuality/Rector/MethodCall/AssertIssetToSpecificMethodRector/Fixture/skip_superglobals.php.inc @@ -0,0 +1,21 @@ +isNames($issetExpr->var, self::SUPER_GLOBAL_VARIABLE_NAMES)) { + return null; + } + // isset() on an ArrayAccess object is not equivalent to assertArrayHasKey(): // the key may be any type (assertArrayHasKey() requires int|string) and offsetExists() // semantics can differ from array_key_exists()