You are here

private function Uri::filterScheme in Auth0 Single Sign On 8.2

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 572

Class

Uri
PSR-7 URI implementation.

Namespace

GuzzleHttp\Psr7

Code

private function filterScheme($scheme) {
  if (!is_string($scheme)) {
    throw new \InvalidArgumentException('Scheme must be a string');
  }
  return strtolower($scheme);
}