WordPress\AiClientDependencies\Nyholm\Psr7
Uri::isNonStandardPort
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() Uri::isNonStandardPort code WP 7.1
private static function isNonStandardPort(string $scheme, int $port): bool
{
return !isset(self::SCHEMES[$scheme]) || $port !== self::SCHEMES[$scheme];
}