summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorwn_ <[email protected]>2021-11-11 20:12:47 +0000
committerwn_ <[email protected]>2021-11-11 20:12:47 +0000
commitf704d25ab15c5ffd988403d36b90fe76fb72916e (patch)
treee007f1d105cabf60f9093fc84e3ec71121c51c53 /include
parent03495c11ed69f6311e9c7596cc53c5b15ce82bf6 (diff)
Address PHPStan warnings in 'classes/timehelper.php'.
Diffstat (limited to 'include')
-rw-r--r--include/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php
index 238cbe7f5..8b112e3fb 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -213,12 +213,12 @@
}
/** function is @deprecated by TimeHelper::smart_date_time() */
- function smart_date_time($timestamp, $tz_offset = 0, $owner_uid = false, $eta_min = false) {
+ function smart_date_time(int $timestamp, int $tz_offset = 0, int $owner_uid = null, bool $eta_min = false): string {
return TimeHelper::smart_date_time($timestamp, $tz_offset, $owner_uid, $eta_min);
}
/** function is @deprecated by TimeHelper::make_local_datetime() */
- function make_local_datetime($timestamp, $long, $owner_uid = false, $no_smart_dt = false, $eta_min = false) {
+ function make_local_datetime(string $timestamp, bool $long, int $owner_uid = null, bool $no_smart_dt = false, bool $eta_min = false): string {
return TimeHelper::make_local_datetime($timestamp, $long, $owner_uid, $no_smart_dt, $eta_min);
}