Skip to content

Commit 925dc45

Browse files
committed
Add missing parent reassignment in while block
1 parent 2d10535 commit 925dc45

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/AutoReview/SourceCodeTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ public function testSourceClassDoesNotHaveUnnecessaryProtectedMethods(string $cl
204204
...$allowedProtectedMethods,
205205
...$parent->getMethods(\ReflectionMethod::IS_PROTECTED),
206206
];
207+
$parent = $parent->getParentClass();
207208
}
208209

209210
$allowedProtectedMethods = array_unique(array_map(

0 commit comments

Comments
 (0)