Skip to content

Commit

Permalink
Merge pull request #3 from iqbalhs/2-php-count-fix
Browse files Browse the repository at this point in the history
Fix `count` to compatible with PHP > 7.2 in case variable is not countable
  • Loading branch information
Igor Chepurnoy authored Aug 26, 2019
2 parents 0a82e9a + 0d26f68 commit 646eee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QueryProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}

Expand Down

0 comments on commit 646eee9

Please sign in to comment.