Skip to content

Commit

Permalink
Fixed AbstractQueryBuilder::buildInCondition(), added check if $colum…
Browse files Browse the repository at this point in the history
…n is \Countable otherwise it will Exception
  • Loading branch information
tafid committed May 21, 2018
1 parent 04e1cf5 commit 7390245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbstractQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ protected function buildInCondition($operator, $operands, $not = false)

list($column, $values) = $operands;

if (count($column) > 1) {
if ($column instanceof \Countable && count($column) > 1) {
return $this->buildCompositeInCondition($operator, $column, $values);
} elseif (is_array($column)) {
$column = reset($column);
Expand Down

0 comments on commit 7390245

Please sign in to comment.