From 0fbbe262fa8ac21d9243fc007feaa4efec7e2af7 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sun, 2 May 2021 16:05:16 +0200 Subject: [PATCH] Remove Countable from execute return type --- src/Datagrid/ProxyQueryInterface.php | 2 +- src/Model/ModelManagerInterface.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Datagrid/ProxyQueryInterface.php b/src/Datagrid/ProxyQueryInterface.php index 279923c223..9bfc5f3079 100644 --- a/src/Datagrid/ProxyQueryInterface.php +++ b/src/Datagrid/ProxyQueryInterface.php @@ -29,7 +29,7 @@ interface ProxyQueryInterface public function __call($name, $args); /** - * @return array|(\Traversable&\Countable) + * @return array|\Traversable */ public function execute(); diff --git a/src/Model/ModelManagerInterface.php b/src/Model/ModelManagerInterface.php index 2dd22790c1..1a569978f2 100644 --- a/src/Model/ModelManagerInterface.php +++ b/src/Model/ModelManagerInterface.php @@ -332,9 +332,9 @@ public function modelTransform($class, $instance); /** * @param object $query * - * @return array|(\Traversable&\Countable) + * @return array|\Traversable * - * @phpstan-return array|(\Traversable&\Countable) + * @phpstan-return array|\Traversable */ public function executeQuery($query);