File tree 1 file changed +3
-9
lines changed
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
482
482
483
483
foreach ($ this ->methodsClassReflectionExtensions as $ extension ) {
484
484
if ($ extension ->hasMethod ($ this , $ methodName )) {
485
- $ this ->hasMethodCache [$ methodName ] = true ;
486
-
487
- return true ;
485
+ return $ this ->hasMethodCache [$ methodName ] = true ;
488
486
}
489
487
}
490
488
491
489
if ($ this ->requireExtendsMethodsClassReflectionExtension ->hasMethod ($ this , $ methodName )) {
492
- $ this ->hasMethodCache [$ methodName ] = true ;
493
-
494
- return true ;
490
+ return $ this ->hasMethodCache [$ methodName ] = true ;
495
491
}
496
492
497
- $ this ->hasMethodCache [$ methodName ] = false ;
498
-
499
- return false ;
493
+ return $ this ->hasMethodCache [$ methodName ] = false ;
500
494
}
501
495
502
496
public function getMethod (string $ methodName , ClassMemberAccessAnswerer $ scope ): ExtendedMethodReflection
You can’t perform that action at this time.
0 commit comments