Skip to content

Commit 4a4f150

Browse files
committed
Correct nested where variables
1 parent a86ca8e commit 4a4f150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Typesense/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private function wheresToFilter(array $wheres): string
3434
$operator = $filterBy != '' ? ($where['boolean'] == 'and' ? ' && ' : ' || ') : '';
3535

3636
if ($where['type'] == 'Nested') {
37-
$filterBy .= $operator.' ( '.$this->wheresToFilter($where->query['wheres']).' ) ';
37+
$filterBy .= $operator.' ( '.$this->wheresToFilter($where['query']->wheres).' ) ';
3838

3939
continue;
4040
}

0 commit comments

Comments
 (0)