aboutsummaryrefslogtreecommitdiff
path: root/app/Models/FeedDAO.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-11-18 23:21:20 +0100
committerGravatar GitHub <noreply@github.com> 2023-11-18 23:21:20 +0100
commitb65ea979010eb488cc9c1fb1d0f082e868c191d5 (patch)
treebe2c1b06aa5fcea8d33d43ba76acbfff3e4f0f0e /app/Models/FeedDAO.php
parent445e49db15ea7ae41dc55efea2d67903557f9182 (diff)
Fix PHP 7 compatibility strict_types (#5893)
* Fix PHP 7 compatibility https://github.com/FreshRSS/FreshRSS/discussions/5892 * Multiple PHP 7 fixes * PHPStan
Diffstat (limited to 'app/Models/FeedDAO.php')
-rw-r--r--app/Models/FeedDAO.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Models/FeedDAO.php b/app/Models/FeedDAO.php
index 42a4e77f1..82e33dd84 100644
--- a/app/Models/FeedDAO.php
+++ b/app/Models/FeedDAO.php
@@ -584,6 +584,7 @@ SQL;
$list = [];
foreach ($listDAO as $key => $dao) {
+ FreshRSS_DatabaseDAO::pdoInt($dao, ['id', 'kind', 'category', 'lastUpdate', 'priority', 'error', 'ttl', 'cache_nbUnreads', 'cache_nbEntries']);
if (!isset($dao['name'])) {
continue;
}
@@ -627,6 +628,6 @@ SQL;
return -1;
}
$res = $stm->fetchAll(PDO::FETCH_COLUMN, 0);
- return $res[0] ?? 0;
+ return (int)($res[0] ?? 0);
}
}