private function Uri::filterHost in Auth0 Single Sign On 8.2
Parameters
string $host:
Return value
string
Throws
\InvalidArgumentException If the host is invalid.
2 calls to Uri::filterHost()
- Uri::applyParts in vendor/
guzzlehttp/ psr7/ src/ Uri.php - Apply parse_url parts to a URI.
- Uri::withHost in vendor/
guzzlehttp/ psr7/ src/ Uri.php - Return an instance with the specified host.
File
- vendor/
guzzlehttp/ psr7/ src/ Uri.php, line 608
Class
- Uri
- PSR-7 URI implementation.
Namespace
GuzzleHttp\Psr7Code
private function filterHost($host) {
if (!is_string($host)) {
throw new \InvalidArgumentException('Host must be a string');
}
return strtolower($host);
}