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