Update DateTimeFormat documentation

- Remove an explicit default value parameter
This commit is contained in:
Hypolite Petovan 2021-12-02 09:07:54 -05:00
parent d62f21cfa1
commit ecaed2a845
3 changed files with 4 additions and 4 deletions

View file

@ -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);
}