public function withPort(int $port = null) : Uri { $new = clone $this; $new->port = $new->filterPort($port); return $new; }