mirror of
https://github.com/friendica/friendica
synced 2025-04-23 13:50:11 +00:00
Add parameter type hints in Temporal::getDateofBirthField
This commit is contained in:
parent
118e737a49
commit
f51b275b17
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ class Temporal
|
||||||
* @return string Formatted HTML
|
* @return string Formatted HTML
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
public static function getDateofBirthField($dob, $timezone = 'UTC')
|
public static function getDateofBirthField(string $dob, string $timezone = 'UTC')
|
||||||
{
|
{
|
||||||
list($year, $month, $day) = sscanf($dob, '%4d-%2d-%2d');
|
list($year, $month, $day) = sscanf($dob, '%4d-%2d-%2d');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue