$queryString =
strtr($key, self::QUERY_SEPARATORS_REPLACEMENT
);
if ($value !== null
) { $queryString .= '='.
strtr($value, self::QUERY_SEPARATORS_REPLACEMENT
);
} return $queryString;
} private function removeDefaultPort(): void
{ if ($this->port !== null && self::
isDefaultPort($this)) { $this->port = null;
} } /**
* Filters the path of a URI
*
* @param mixed $path
*
* @throws \InvalidArgumentException If the path is invalid.
*/