public function withQueryParams(array $query) { $new = $this->psrRequest->withQueryParams($query); return new self($new, $this->originalRequest); }