Skip to content

Commit ec60161

Browse files
committed
Fix duplicate work in AnnotationsPropertiesClassReflectionExtension->findClassReflectionWithProperty()
1 parent 8bb2a20 commit ec60161

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,11 @@ private function findClassReflectionWithProperty(
8181
}
8282

8383
$parentClass = $classReflection->getParentClass();
84-
while ($parentClass !== null) {
84+
if ($parentClass !== null) {
8585
$methodWithDeclaringClass = $this->findClassReflectionWithProperty($parentClass, $parentClass, $propertyName);
8686
if ($methodWithDeclaringClass !== null) {
8787
return $methodWithDeclaringClass;
8888
}
89-
90-
$parentClass = $parentClass->getParentClass();
9189
}
9290

9391
foreach ($classReflection->getInterfaces() as $interfaceClass) {

0 commit comments

Comments
 (0)