You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!isset($hierarchyDistances[$distanceDeclaringClass])) {
199
205
thrownew \PHPStan\ShouldNotHappenException();
200
206
}
201
207
202
-
if ($hierarchyDistances[$annotationProperty->getDeclaringClass()->getName()] <=$hierarchyDistances[$propertyReflection->getDeclaringClass()->getName()]) {
208
+
if ($hierarchyDistances[$annotationProperty->getDeclaringClass()->getName()] < $hierarchyDistances[$distanceDeclaringClass]) {
203
209
return$annotationProperty;
204
210
}
205
211
}
@@ -391,11 +397,17 @@ private function createMethod(
391
397
if (!isset($hierarchyDistances[$annotationMethod->getDeclaringClass()->getName()])) {
392
398
thrownew \PHPStan\ShouldNotHappenException();
393
399
}
394
-
if (!isset($hierarchyDistances[$methodReflection->getDeclaringClass()->getName()])) {
0 commit comments