Skip to content

Commit 2ee974e

Browse files
committed
Cosmetics
1 parent fb73c57 commit 2ee974e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/Reflection/ClassReflection.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -482,21 +482,15 @@ public function hasMethod(string $methodName): bool
482482

483483
foreach ($this->methodsClassReflectionExtensions as $extension) {
484484
if ($extension->hasMethod($this, $methodName)) {
485-
$this->hasMethodCache[$methodName] = true;
486-
487-
return true;
485+
return $this->hasMethodCache[$methodName] = true;
488486
}
489487
}
490488

491489
if ($this->requireExtendsMethodsClassReflectionExtension->hasMethod($this, $methodName)) {
492-
$this->hasMethodCache[$methodName] = true;
493-
494-
return true;
490+
return $this->hasMethodCache[$methodName] = true;
495491
}
496492

497-
$this->hasMethodCache[$methodName] = false;
498-
499-
return false;
493+
return $this->hasMethodCache[$methodName] = false;
500494
}
501495

502496
public function getMethod(string $methodName, ClassMemberAccessAnswerer $scope): ExtendedMethodReflection

0 commit comments

Comments
 (0)