Skip to content

Commit 646eee9

Browse files
author
Igor Chepurnoy
authored
Merge pull request #3 from iqbalhs/2-php-count-fix
Fix `count` to compatible with PHP > 7.2 in case variable is not countable
2 parents 0a82e9a + 0d26f68 commit 646eee9

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)