From 66b9cace9fed02774388cd20587d912e9fa64d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Sun, 11 Sep 2022 22:46:40 +0200 Subject: [PATCH] Changed: - first parameter can be null --- src/Util/Temporal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/Temporal.php b/src/Util/Temporal.php index 0186b59dd..ef87f8488 100644 --- a/src/Util/Temporal.php +++ b/src/Util/Temporal.php @@ -311,7 +311,7 @@ class Temporal * * @return string with relative date */ - public static function getRelativeDate(string $posted_date, string $format = null): string + public static function getRelativeDate(string $posted_date = null, string $format = null): string { $localtime = $posted_date . ' UTC';