private function Uri::filterScheme in Lockr 7.3
Parameters
string $scheme:
Return value
string
Throws
\InvalidArgumentException If the scheme is invalid.
2 calls to Uri::filterScheme()
- Uri::applyParts in vendor/
guzzlehttp/ psr7/ src/ Uri.php - Apply parse_url parts to a URI.
- Uri::withScheme in vendor/
guzzlehttp/ psr7/ src/ Uri.php - Return an instance with the specified scheme.
File
- vendor/
guzzlehttp/ psr7/ src/ Uri.php, line 570
Class
- Uri
- PSR-7 URI implementation.
Namespace
GuzzleHttp\Psr7Code
private function filterScheme($scheme) {
if (!is_string($scheme)) {
throw new \InvalidArgumentException('Scheme must be a string');
}
return strtolower($scheme);
}