From 23447f1221713fca92824ac098469fa69efdad03 Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Wed, 8 Mar 2023 12:39:04 +0100 Subject: Type hinting for Factory.php up to PHPStan 9 (#5090) * Type hinting for Factory.php up to PHPStan 8 * Fix phpstan collateral * revert test * remarrk from Alkarex * remark from Alkarex * Update app/Controllers/entryController.php Co-authored-by: Alexandre Alapetite * Remarque's from Alkarex * Remarque's from Alkarex * Remarque's from Alkarex --------- Co-authored-by: Luc Co-authored-by: Alexandre Alapetite --- app/Models/EntryDAO.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Models/EntryDAO.php') diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php index 3b7c1ac3f..aab17d01e 100644 --- a/app/Models/EntryDAO.php +++ b/app/Models/EntryDAO.php @@ -1197,11 +1197,11 @@ SQL; /** * For API - * @return array + * @return array|false */ public function listIdsWhere($type = 'a', $id = '', $state = FreshRSS_Entry::STATE_ALL, - $order = 'DESC', $limit = 1, $firstId = '', $filters = null): array { - list($values, $sql) = $this->sqlListWhere($type, $id, $state, $order, $limit, $firstId, $filters); + $order = 'DESC', $limit = 1, $firstId = '', $filters = null) { + [$values, $sql] = $this->sqlListWhere($type, $id, $state, $order, $limit, $firstId, $filters); $stm = $this->pdo->prepare($sql); $stm->execute($values); -- cgit v1.2.3