Skip to content

Commit a5b91d5

Browse files
committed
BUGFIX: Allow setting arrays with setValueByPath
This is especially needed if you need to reset a part of the query cofigutation to an empty array
1 parent 618da54 commit a5b91d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Classes/Driver/AbstractQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function highlight($fragmentSize, int $fragmentCount = null): void
192192
/**
193193
* {@inheritdoc}
194194
*/
195-
public function setValueByPath(string $path, string $value): void
195+
public function setValueByPath(string $path, $value): void
196196
{
197197
$this->request = Arrays::setValueByPath($this->request, $path, $value);
198198
}

Classes/Driver/QueryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,10 @@ public function queryFilter(string $filterType, $filterOptions, string $clauseTy
140140

141141
/**
142142
* @param string $path
143-
* @param string $value
143+
* @param string|array $value
144144
* @return void
145145
*/
146-
public function setValueByPath(string $path, string $value): void;
146+
public function setValueByPath(string $path, $value): void;
147147

148148
/**
149149
* Append $data to the given array at $path inside $this->request.

0 commit comments

Comments
 (0)