aboutsummaryrefslogtreecommitdiff
path: root/app/Models/CategoryDAO.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-04-17 16:24:35 +0200
committerGravatar GitHub <noreply@github.com> 2023-04-17 16:24:35 +0200
commit62496339b6a43fcbb8267fb0f14ac2b165bf5826 (patch)
treea7ed5fe51af404af6939814e401c002252589f5c /app/Models/CategoryDAO.php
parent5185bcef13862ee86298cd38b83da145d03055b5 (diff)
More consistent use of iterable type (#5308)
For `yield`
Diffstat (limited to 'app/Models/CategoryDAO.php')
-rw-r--r--app/Models/CategoryDAO.php4
1 files changed, 2 insertions, 2 deletions
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<array<string,string|int>> */
- public function selectAll() {
+ /** @return iterable<array<string,string|int>> */
+ public function selectAll(): iterable {
$sql = 'SELECT id, name, kind, `lastUpdate`, error, attributes FROM `_category`';
$stm = $this->pdo->query($sql);
if ($stm != false) {