From 4880619632e0b2e0358efe75f352f1b6b8cdfb12 Mon Sep 17 00:00:00 2001 From: Vitalii Tverdokhlib Date: Fri, 6 Apr 2018 22:24:59 +0300 Subject: [PATCH] PHP 7.2: count() fix - Parameter must be an array or an object that implements Countable --- lib/Doctrine/Query/Abstract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Query/Abstract.php b/lib/Doctrine/Query/Abstract.php index 7b69d4c47..f104e555c 100644 --- a/lib/Doctrine/Query/Abstract.php +++ b/lib/Doctrine/Query/Abstract.php @@ -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; }