Skip to content

Commit bd21a0a

Browse files
committed
Fixed a bug in the Nested filter component. The param should be filter instead of query and it requires to be flattened
1 parent f0fbde2 commit bd21a0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Sherlock/components/filters/Nested.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
/**
1414
* @method \Sherlock\components\filters\Nested path() path(\string $value)
15-
* @method \Sherlock\components\filters\Nested query() query(\sherlock\components\QueryInterface $value)
15+
* @method \Sherlock\components\filters\Nested filter() filter(\sherlock\components\FilterInterface $value)
1616
* @method \Sherlock\components\filters\Nested _cache() _cache(\bool $value) Default: false
1717
1818
*/
@@ -32,7 +32,7 @@ public function toArray()
3232
'nested' =>
3333
array(
3434
'path' => $this->params["path"],
35-
'query' => $this->params["query"],
35+
'filter' => $this->params["filter"]->toArray(),
3636
'_cache' => $this->params["_cache"],
3737
),
3838
);

0 commit comments

Comments
 (0)