The expression return self::parseTokenF...>getQuery(), $queryKey) could return the type array which is incompatible with the type-hinted return null|string. Consider adding an additional type-check to rule them out.
Loading history...
17
}
18
19
6
public static function parseQueryTokenFromUrl(string $url, string $queryKey = 'token'): ?string
The expression return self::parseTokenF...queryString, $queryKey) could return the type array which is incompatible with the type-hinted return null|string. Consider adding an additional type-check to rule them out.
Loading history...
28
}
29
30
13
public static function parseTokenFromQueryString(string $queryString, string $queryKey = 'token'): null|string|array