Skip to content

Commit 5a5d069

Browse files
author
Pantea Marius-ciclistu
committed
Fix rawRequest
1 parent d20aaa3 commit 5a5d069

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/QueryStringBuilder.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public function __construct()
2929
*/
3030
public function setRawRequest(array $request): self
3131
{
32+
$this->inHeaderQuery = false;
3233
$this->rawRequest = $request;
3334

3435
return $this;
@@ -117,13 +118,6 @@ public function addExistRelations(array $existRelations): self
117118

118119
public function getUrlQueryString(array $overrides = []): string
119120
{
120-
if ($this->rawRequest !== []) {
121-
return \http_build_query(\array_merge(
122-
$this->rawRequest,
123-
$overrides
124-
), '', '&', PHP_QUERY_RFC3986);
125-
}
126-
127121
return \http_build_query(\array_merge(
128122
$this->getAllFilters(),
129123
$overrides
@@ -132,6 +126,10 @@ public function getUrlQueryString(array $overrides = []): string
132126

133127
public function getAllFilters(): array
134128
{
129+
if ($this->rawRequest !== []) {
130+
return $this->rawRequest;
131+
}
132+
135133
return \array_merge(
136134
$this->getFilters(),
137135
$this->sqlDebug ? ['sqlDebug' => 1] : [],

0 commit comments

Comments
 (0)