From 0d26f681e330c78c565e93c2c46b8056f2e3e5c2 Mon Sep 17 00:00:00 2001 From: Iqbal Hamsyah Date: Mon, 26 Aug 2019 17:13:06 +0700 Subject: [PATCH] fix `count` to compatible with PHP > 7.2 in case variable is not countable --- QueryProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QueryProcessor.php b/QueryProcessor.php index deacb50..88a8b30 100644 --- a/QueryProcessor.php +++ b/QueryProcessor.php @@ -332,7 +332,7 @@ protected function filterInCondition(array $data, $operator, $operands) $values = (array) $values; - if (count($column) > 1) { + if (count((array) $column) > 1) { throw new InvalidParamException("Operator '$operator' allows only a single column."); }