summaryrefslogtreecommitdiff
path: root/classes/digest.php
diff options
context:
space:
mode:
authorwn_ <[email protected]>2021-11-11 21:46:44 +0000
committerwn_ <[email protected]>2021-11-11 21:46:44 +0000
commit50997df57a8128fb72e15e0a6ca50401928d3900 (patch)
tree222b91da42fb81aa080ade963e2a82954b421b4a /classes/digest.php
parentcc220058e075602ed689eb77b402ad4c9a623c79 (diff)
Address PHPStan warnings in 'inclasses/digest.php'.
Diffstat (limited to 'classes/digest.php')
-rw-r--r--classes/digest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/digest.php b/classes/digest.php
index 94e5cd1fc..7adf9b449 100644
--- a/classes/digest.php
+++ b/classes/digest.php
@@ -1,7 +1,7 @@
<?php
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)
$limit = 1000; // maximum amount of headlines to include
@@ -78,6 +78,9 @@ class Digest
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) {
$tpl = new Templator();