From 115724622fa32e1b7981e378e87ccfb770450cb1 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 23 Apr 2023 11:58:15 +0200 Subject: PHPStan Level 7 for ten more files (#5327) * PHPStan Level 7 for nine more files * Minor syntax * One more --- app/Models/EntryDAO.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'app/Models/EntryDAO.php') diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php index 365ee67fa..19547ac31 100644 --- a/app/Models/EntryDAO.php +++ b/app/Models/EntryDAO.php @@ -696,8 +696,8 @@ SQL; } } - /** @return iterable> */ - public function selectAll(): iterable { + /** @return Traversable> */ + public function selectAll(): Traversable { $sql = 'SELECT id, guid, title, author, ' . (static::isCompressed() ? 'UNCOMPRESS(content_bin) AS content' : 'content') . ', link, date, `lastSeen`, ' . static::sqlHexEncode('hash') . ' AS hash, is_read, is_favorite, id_feed, tags, attributes ' @@ -1149,11 +1149,11 @@ SQL; /** * @param int $id category/feed/tag ID - * @return iterable + * @return Traversable */ public function listWhere(string $type = 'a', int $id = 0, int $state = FreshRSS_Entry::STATE_ALL, string $order = 'DESC', int $limit = 1, string $firstId = '', - ?FreshRSS_BooleanSearch $filters = null, int $date_min = 0): iterable { + ?FreshRSS_BooleanSearch $filters = null, int $date_min = 0): Traversable { $stm = $this->listWhereRaw($type, $id, $state, $order, $limit, $firstId, $filters, $date_min); if ($stm) { while ($row = $stm->fetch(PDO::FETCH_ASSOC)) { @@ -1164,9 +1164,9 @@ SQL; /** * @param array $ids - * @return iterable + * @return Traversable */ - public function listByIds(array $ids, string $order = 'DESC'): iterable { + public function listByIds(array $ids, string $order = 'DESC'): Traversable { if (count($ids) < 1) { return; } -- cgit v1.2.3