X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FDateTimeFormat.php;h=41cd16d2f41464bc692a63963b6109ba1e37dee1;hb=093dd70e790def206d6f7d48cfac095c29eb10a5;hp=9374ec836007b3aa4664e80cdf9dc1e44c991745;hpb=e56a53647bd5469551bf4f9ef2df50a5dd16b943;p=friendica.git diff --git a/src/Util/DateTimeFormat.php b/src/Util/DateTimeFormat.php index 9374ec8360..41cd16d2f4 100644 --- a/src/Util/DateTimeFormat.php +++ b/src/Util/DateTimeFormat.php @@ -52,7 +52,7 @@ class DateTimeFormat * @return string * @throws Exception */ - public static function utc($time, $format = self::MYSQL) + public static function utc(string $time, string $format = self::MYSQL): string { return self::convert($time, 'UTC', 'UTC', $format); } @@ -102,7 +102,7 @@ class DateTimeFormat * @return string * @throws Exception */ - public static function utcNow($format = self::MYSQL) + public static function utcNow(string $format = self::MYSQL): string { return self::utc('now', $format); }