Skip to content

Commit

Permalink
fix count to compatible with PHP > 7.2 in case variable is not coun…
Browse files Browse the repository at this point in the history
…table
  • Loading branch information
iqbalhs committed Aug 26, 2019
1 parent 0a82e9a commit 0d26f68
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 0d26f68

Please sign in to comment.