private function isNonStandardPort($scheme, $host, $port)
{
if (!$scheme) {
if ($host && !$port) {
return false;
}
return true;
}
if (!$host || !$port) {
return false;
}
return !isset($this->allowedSchemes[$scheme]) || $port !== $this->allowedSchemes[$scheme];
}