File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -209,15 +209,15 @@ public function isCallable(): TrinaryLogic
209209 return TrinaryLogic::createMaybe ();
210210 }
211211
212- $ phpVersion = PhpVersionStaticAccessor::getInstance ();
213212 $ classRef = $ reflectionProvider ->getClass ($ matches [1 ]);
214213 if ($ classRef ->hasMethod ($ matches [2 ])) {
215- $ method = $ classRef ->getMethod ($ matches [2 ], new OutOfClassScope ());
216- if (
217- !$ phpVersion ->supportsCallableInstanceMethods ()
218- && !$ method ->isStatic ()
219- ) {
220- return TrinaryLogic::createNo ();
214+ $ phpVersion = PhpVersionStaticAccessor::getInstance ();
215+ if (!$ phpVersion ->supportsCallableInstanceMethods ()) {
216+ $ method = $ classRef ->getMethod ($ matches [2 ], new OutOfClassScope ());
217+
218+ if (!$ method ->isStatic ()) {
219+ return TrinaryLogic::createNo ();
220+ }
221221 }
222222
223223 return TrinaryLogic::createYes ();
You can’t perform that action at this time.
0 commit comments