mirror of
https://github.com/friendica/friendica
synced 2025-04-21 23:50:18 +00:00
Update DateTimeFormat documentation
- Remove an explicit default value parameter
This commit is contained in:
parent
d62f21cfa1
commit
ecaed2a845
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue