diff options
Diffstat (limited to 'app/Models/StatsDAOSQLite.php')
| -rw-r--r-- | app/Models/StatsDAOSQLite.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/Models/StatsDAOSQLite.php b/app/Models/StatsDAOSQLite.php index d262b40f8..632fa17e2 100644 --- a/app/Models/StatsDAOSQLite.php +++ b/app/Models/StatsDAOSQLite.php @@ -2,11 +2,14 @@ class FreshRSS_StatsDAOSQLite extends FreshRSS_StatsDAO { - protected function sqlFloor($s) { + protected function sqlFloor(string $s): string { return "CAST(($s) AS INT)"; } - protected function calculateEntryRepartitionPerFeedPerPeriod($period, $feed = null) { + /** + * @return array<int,int> + */ + protected function calculateEntryRepartitionPerFeedPerPeriod(string $period, ?int $feed = null): array { if ($feed) { $restrict = "WHERE e.id_feed = {$feed}"; } else { |
