Skip to content

Commit

Permalink
Fix toArray() call on array
Browse files Browse the repository at this point in the history
  • Loading branch information
deguif committed Mar 24, 2021
1 parent b3a756e commit 39436c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function toArray(): array
$this->setQuery(new MatchAll());
}

if (isset($this->_params['post_filter']) && 0 === \count(($this->_params['post_filter'])->toArray())) {
if (isset($this->_params['post_filter']) && 0 === \count($this->_params['post_filter'])) {
unset($this->_params['post_filter']);
}

Expand Down

0 comments on commit 39436c2

Please sign in to comment.