WordPress\AiClientDependencies\Nyholm\Psr7

Uri::isNonStandardPortprivate staticWP 1.0

Is a given port non-standard for the current scheme?

Method of the class: Uri{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = Uri::isNonStandardPort( $scheme, $port ): bool;
$scheme(string) (required)
.
$port(int) (required)
.

Uri::isNonStandardPort() code WP 7.1

private static function isNonStandardPort(string $scheme, int $port): bool
{
    return !isset(self::SCHEMES[$scheme]) || $port !== self::SCHEMES[$scheme];
}