- first parameter can be null
This commit is contained in:
Roland Häder 2022-09-11 22:46:40 +02:00
parent bbe05f523f
commit 66b9cace9f
No known key found for this signature in database
GPG Key ID: C82EDE5DDFA0BA77
1 changed files with 1 additions and 1 deletions

View File

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