diff --git a/tests/AutoReview/SourceCodeTest.php b/tests/AutoReview/SourceCodeTest.php index 50415b5..a9f2f77 100644 --- a/tests/AutoReview/SourceCodeTest.php +++ b/tests/AutoReview/SourceCodeTest.php @@ -204,6 +204,7 @@ public function testSourceClassDoesNotHaveUnnecessaryProtectedMethods(string $cl ...$allowedProtectedMethods, ...$parent->getMethods(\ReflectionMethod::IS_PROTECTED), ]; + $parent = $parent->getParentClass(); } $allowedProtectedMethods = array_unique(array_map(