Skip to content

Commit c47730f

Browse files
committed
Simplify extensions
1 parent 058e74f commit c47730f

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

src/Reflection/Annotations/AnnotationsMethodsClassReflectionExtension.php

-9
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,6 @@ private function findClassReflectionWithMethod(
108108
return $methodWithDeclaringClass;
109109
}
110110

111-
foreach ($parentClass->getTraits() as $traitClass) {
112-
$parentTraitMethodWithDeclaringClass = $this->findClassReflectionWithMethod($traitClass, $parentClass, $methodName);
113-
if ($parentTraitMethodWithDeclaringClass === null) {
114-
continue;
115-
}
116-
117-
return $parentTraitMethodWithDeclaringClass;
118-
}
119-
120111
$parentClass = $parentClass->getParentClass();
121112
}
122113

src/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtension.php

-9
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,6 @@ private function findClassReflectionWithProperty(
9090
return $methodWithDeclaringClass;
9191
}
9292

93-
foreach ($parentClass->getTraits() as $traitClass) {
94-
$parentTraitMethodWithDeclaringClass = $this->findClassReflectionWithProperty($traitClass, $parentClass, $propertyName);
95-
if ($parentTraitMethodWithDeclaringClass === null) {
96-
continue;
97-
}
98-
99-
return $parentTraitMethodWithDeclaringClass;
100-
}
101-
10293
$parentClass = $parentClass->getParentClass();
10394
}
10495

0 commit comments

Comments
 (0)