From 62496339b6a43fcbb8267fb0f14ac2b165bf5826 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 17 Apr 2023 16:24:35 +0200 Subject: More consistent use of iterable type (#5308) For `yield` --- app/Models/CategoryDAO.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Models/CategoryDAO.php') diff --git a/app/Models/CategoryDAO.php b/app/Models/CategoryDAO.php index 29593ce5f..4855a43d9 100644 --- a/app/Models/CategoryDAO.php +++ b/app/Models/CategoryDAO.php @@ -214,8 +214,8 @@ SQL; } } - /** @return iterator> */ - public function selectAll() { + /** @return iterable> */ + public function selectAll(): iterable { $sql = 'SELECT id, name, kind, `lastUpdate`, error, attributes FROM `_category`'; $stm = $this->pdo->query($sql); if ($stm != false) { -- cgit v1.2.3