1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 21:25:55 +00:00

Address PHPStan warnings in 'inclasses/digest.php'.

This commit is contained in:
wn_
2021-11-11 21:46:44 +00:00
parent cc220058e0
commit 50997df57a

View File

@@ -1,7 +1,7 @@
<?php <?php
class Digest class Digest
{ {
static function send_headlines_digests() { static function send_headlines_digests(): void {
$user_limit = 15; // amount of users to process (e.g. emails to send out) $user_limit = 15; // amount of users to process (e.g. emails to send out)
$limit = 1000; // maximum amount of headlines to include $limit = 1000; // maximum amount of headlines to include
@@ -78,6 +78,9 @@ class Digest
Debug::log("All done."); Debug::log("All done.");
} }
/**
* @return array{0: string, 1: int, 2: array<int>, 3: string}
*/
static function prepare_headlines_digest(int $user_id, int $days = 1, int $limit = 1000) { static function prepare_headlines_digest(int $user_id, int $days = 1, int $limit = 1000) {
$tpl = new Templator(); $tpl = new Templator();