From ca2c8eea396457781a7b0800d6f7ea35cf80ddc3 Mon Sep 17 00:00:00 2001 From: Ryan Morris Date: Fri, 20 Nov 2020 13:24:40 -0500 Subject: [PATCH] Fixing an invalid use of count() [Warning] --- src/Adapter/Zend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Adapter/Zend.php b/src/Adapter/Zend.php index 5968243..8718480 100644 --- a/src/Adapter/Zend.php +++ b/src/Adapter/Zend.php @@ -193,7 +193,7 @@ public function getDependents($parentClass, $ids, $dependentClass, $where = [], } // If only one ID was asked for, return just that group instead of a size-one array of groups - return count($ids) > 1 ? $entities : $returnableEntities; + return count((array) $ids) > 1 ? $entities : $returnableEntities; } public function addDependent(Entity_Abstract $parent, Entity_Abstract $dependent) {