diff options
| author | 2023-04-17 16:27:35 +0200 | |
|---|---|---|
| committer | 2023-04-17 16:27:35 +0200 | |
| commit | 8cc8127c3c8ed1b99135b21424134eabec30f150 (patch) | |
| tree | 13600cd462f592de644ed8ef3dd04fc199dc1d87 /app/Models/EntryDAO.php | |
| parent | 62496339b6a43fcbb8267fb0f14ac2b165bf5826 (diff) | |
phpstan level 7 for user-info.php (#5309)
* phpstan level 7 for user-info.php
* phpstan level 7 for user-info.php
* phpstan level 7 for user-info.php
---------
Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Diffstat (limited to 'app/Models/EntryDAO.php')
| -rw-r--r-- | app/Models/EntryDAO.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php index ab71fb0c3..365ee67fa 100644 --- a/app/Models/EntryDAO.php +++ b/app/Models/EntryDAO.php @@ -1295,8 +1295,8 @@ SQL; } $res = $stm->fetchAll(PDO::FETCH_COLUMN, 0); rsort($res); - $all = empty($res[0]) ? 0 : intval($res[0]); - $unread = empty($res[1]) ? 0 : intval($res[1]); + $all = empty($res[0]) ? 0 : (int)$res[0]; + $unread = empty($res[1]) ? 0 : (int)$res[1]; return array('all' => $all, 'unread' => $unread, 'read' => $all - $unread); } |
