diff --git a/rules-tests/CodeQuality/Rector/MethodCall/AssertIssetToSpecificMethodRector/Fixture/skip_array_access_object.php.inc b/rules-tests/CodeQuality/Rector/MethodCall/AssertIssetToSpecificMethodRector/Fixture/skip_array_access_object.php.inc new file mode 100644 index 000000000..d32905361 --- /dev/null +++ b/rules-tests/CodeQuality/Rector/MethodCall/AssertIssetToSpecificMethodRector/Fixture/skip_array_access_object.php.inc @@ -0,0 +1,16 @@ +assertTrue(isset($store[$key]), 'message'); + $this->assertFalse(isset($store[$key])); + } +} diff --git a/rules-tests/CodeQuality/Rector/MethodCall/AssertIssetToSpecificMethodRector/Source/SomeArrayAccessStore.php b/rules-tests/CodeQuality/Rector/MethodCall/AssertIssetToSpecificMethodRector/Source/SomeArrayAccessStore.php new file mode 100644 index 000000000..3ddd050b9 --- /dev/null +++ b/rules-tests/CodeQuality/Rector/MethodCall/AssertIssetToSpecificMethodRector/Source/SomeArrayAccessStore.php @@ -0,0 +1,26 @@ +isObjectType($issetExpr->var, new ObjectType('ArrayAccess'))) { + return null; + } + return $this->refactorArrayDimFetchNode($node, $issetExpr); }