diff --git a/src/Filter/Range.php b/src/Filter/Range.php index e5702a7e9e58e6986d1bf815679ab47d0b5e4b5c..cd950d556cd9baefb2733e991a00da927b30cee3 100644 --- a/src/Filter/Range.php +++ b/src/Filter/Range.php @@ -13,8 +13,8 @@ final class Range extends HttpFilter /** @throws FilterParameterValueIsNullException */ public function addToQuery(QueryBuilder $queryBuilder): QueryBuilder { - if ((! isset($this->getHttpValue()['min']) && ! isset($this->getHttpValue()['max'])) - || (! is_numeric($this->getHttpValue()['min']) && ! is_numeric($this->getHttpValue()['max']))) { + if ((! isset($this->getHttpValue()['min']) || ! is_numeric($this->getHttpValue()['min'])) + && (! isset($this->getHttpValue()['max']) || ! is_numeric($this->getHttpValue()['max']))) { throw new FilterParameterValueIsNullException($this->field); }