getName() === 'findResource'; } /** * @param MethodReflection $methodReflection * @param MethodCall $methodCall * @param Scope $scope * @return Type */ public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope): Type { $first = $methodCall->getArgs()[2] ?? false; if ($first) { return new StringType(); } return ParametersAcceptorSelector::selectSingle($methodReflection->getVariants())->getReturnType(); } }