diff --git a/src/Http/FakeHttp.php b/src/Http/FakeHttp.php index fcdc8f9..e4884b9 100644 --- a/src/Http/FakeHttp.php +++ b/src/Http/FakeHttp.php @@ -381,7 +381,7 @@ protected function createRequest( \parse_str($request->getUri()->getQuery(), $uriQuery); $query = \array_merge($uriQuery, $query); } else { - $request = $request->getUri()->withQuery(\http_build_query($query)); + $request = $request->withUri($request->getUri()->withQuery(\http_build_query($query))); } return $request