File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments