Skip to content

Commit

Permalink
Changed:
Browse files Browse the repository at this point in the history
- first parameter can be null
  • Loading branch information
Quix0r committed Oct 14, 2022
1 parent e5ae5c7 commit bcbf5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/Temporal.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public static function getDateTimeField(
*
* @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';

Expand Down

0 comments on commit bcbf5bc

Please sign in to comment.