From 39436c276e83024aea53e6587722c1e71299abbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20de=20Guillebon?= Date: Wed, 24 Mar 2021 11:50:59 +0100 Subject: [PATCH] Fix toArray() call on array --- src/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Query.php b/src/Query.php index 8b4d3cc4f8..bc206bae50 100644 --- a/src/Query.php +++ b/src/Query.php @@ -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']); }