From 8cc8127c3c8ed1b99135b21424134eabec30f150 Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Mon, 17 Apr 2023 16:27:35 +0200 Subject: 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 --- app/Models/EntryDAO.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Models/EntryDAO.php') 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); } -- cgit v1.2.3