diff --git a/rules-tests/CodingStyle/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/Fixture/skip_equal_direct_parent.php.inc b/rules-tests/CodingStyle/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/Fixture/skip_equal_direct_parent.php.inc new file mode 100644 index 00000000000..22c2ac4bedb --- /dev/null +++ b/rules-tests/CodingStyle/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/Fixture/skip_equal_direct_parent.php.inc @@ -0,0 +1,12 @@ +getMethod($methodName); if ($this->isClassMethodCompatibleWithParentReflectionMethod($classMethod, $parentReflectionMethod)) { - continue; + continue 2; } $this->changeClassMethodVisibilityBasedOnReflectionMethod($classMethod, $parentReflectionMethod);