Skip to content

Commit 0d26f68

Browse files
committed
fix count to compatible with PHP > 7.2 in case variable is not countable
1 parent 0a82e9a commit 0d26f68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QueryProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ protected function filterInCondition(array $data, $operator, $operands)
332332

333333
$values = (array) $values;
334334

335-
if (count($column) > 1) {
335+
if (count((array) $column) > 1) {
336336
throw new InvalidParamException("Operator '$operator' allows only a single column.");
337337
}
338338

0 commit comments

Comments
 (0)