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';