From f704d25ab15c5ffd988403d36b90fe76fb72916e Mon Sep 17 00:00:00 2001 From: wn_ Date: Thu, 11 Nov 2021 20:12:47 +0000 Subject: Address PHPStan warnings in 'classes/timehelper.php'. --- classes/timehelper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'classes/timehelper.php') diff --git a/classes/timehelper.php b/classes/timehelper.php index 4317f343f..e66f82f90 100644 --- a/classes/timehelper.php +++ b/classes/timehelper.php @@ -1,7 +1,7 @@ Date: Thu, 11 Nov 2021 21:33:12 +0000 Subject: Fix 'TimeHelper::make_local_datetime()' (null is allowed). --- classes/timehelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/timehelper.php') diff --git a/classes/timehelper.php b/classes/timehelper.php index e66f82f90..453ee0cee 100644 --- a/classes/timehelper.php +++ b/classes/timehelper.php @@ -21,7 +21,7 @@ class TimeHelper { } } - static function make_local_datetime(string $timestamp, bool $long, int $owner_uid = null, + static function make_local_datetime(?string $timestamp, bool $long, int $owner_uid = null, bool $no_smart_dt = false, bool $eta_min = false): string { if (!$owner_uid) $owner_uid = $_SESSION['uid']; -- cgit v1.2.3