diff options
| author | 2023-04-07 12:32:10 +0200 | |
|---|---|---|
| committer | 2023-04-07 12:32:10 +0200 | |
| commit | d23d10bcde1a9b86c784d58b891f61e740e0124e (patch) | |
| tree | 6f907e5d13a04832b3350286b1b847fbb3842ee7 /app/Models/EntryDAO.php | |
| parent | 6c01e4e7d6c177ac345c826059e585bffdd1d517 (diff) | |
Phpstan Level6 for View.php (#5269)
* Remarque's from Alkarex
* indentation
* indentation
* Apply suggestions from code review
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
* Remarque's from Alkarex
* A few improvements
* Remarque's from Alkarex
* Remarque's from Alkarex
* Remarque's from Alkarex
* Remarque's from Alkarex
* Fixes and improvments
* Fix getTagsForEntry
---------
Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Models/EntryDAO.php')
| -rw-r--r-- | app/Models/EntryDAO.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php index 6bb5394b2..cf5550573 100644 --- a/app/Models/EntryDAO.php +++ b/app/Models/EntryDAO.php @@ -1214,9 +1214,8 @@ SQL; } /** - * For API * @param int $id category/feed/tag ID - * @return array<string>|false + * @return array<numeric-string>|false */ public function listIdsWhere(string $type = 'a', int $id = 0, int $state = FreshRSS_Entry::STATE_ALL, string $order = 'DESC', int $limit = 1, string $firstId = '', ?FreshRSS_BooleanSearch $filters = null) { @@ -1225,7 +1224,7 @@ SQL; $stm = $this->pdo->prepare($sql); $stm->execute($values); - return $stm->fetchAll(PDO::FETCH_COLUMN, 0) ?: []; + return $stm->fetchAll(PDO::FETCH_COLUMN, 0); } /** |
