diff options
| author | 2023-05-13 22:47:51 +0200 | |
|---|---|---|
| committer | 2023-05-13 22:47:51 +0200 | |
| commit | d8c535c25c2330f9c2b7ee19d74b6d2b4a3bf4b6 (patch) | |
| tree | 45b3ad4f13f051f0061ade5f1d4d3dc90ae7e045 /app/Models/FeedDAO.php | |
| parent | 68766a98574d98be358199924222f26d8ac36561 (diff) | |
PHPStan Level 7 for Share userController logs_pagination (#5393)
Diffstat (limited to 'app/Models/FeedDAO.php')
| -rw-r--r-- | app/Models/FeedDAO.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/Models/FeedDAO.php b/app/Models/FeedDAO.php index 67543b597..ec51486a6 100644 --- a/app/Models/FeedDAO.php +++ b/app/Models/FeedDAO.php @@ -640,14 +640,11 @@ SQL; } } - /** - * @return int|false - */ - public function count() { + public function count(): int { $sql = 'SELECT COUNT(e.id) AS count FROM `_feed` e'; $stm = $this->pdo->query($sql); if ($stm == false) { - return false; + return -1; } $res = $stm->fetchAll(PDO::FETCH_COLUMN, 0); return isset($res[0]) ? $res[0] : 0; |
