Skip to content

Commit

Permalink
Merge pull request #48 from vitaliytv/patch-1
Browse files Browse the repository at this point in the history
PHP 7.2: count()
  • Loading branch information
j0k3r authored Apr 7, 2018
2 parents ca85260 + 4880619 commit 185f14a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/Query/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@ public function whereIn($expr, $params = array(), $not = false)
public function andWhereIn($expr, $params = array(), $not = false)
{
// if there's no params, return (else we'll get a WHERE IN (), invalid SQL)
if (isset($params) and (count($params) == 0)) {
if (isset($params) and is_array($params) and (count($params) == 0)) {
return $this;
}

Expand Down

0 comments on commit 185f14a

Please sign in to comment.