getName(), [ 'getRequestParameter', 'getQueryStringParameter', 'getCookieParameter', ], true); } public function getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope): Type { return TypeCombinator::union(...[ new StringType(), isset($methodCall->args[2]) ? $scope->getType($methodCall->args[2]->value) : new NullType(), ]); } }