Skip to content

Commit b462a07

Browse files
authored
Correct nested where variables (#20)
2 parents a86ca8e + 4a4f150 commit b462a07

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)