Add parameter type hints in Temporal::getDateofBirthField

pull/7646/head
Hypolite Petovan 2019-09-21 10:52:55 -04:00
rodzic 118e737a49
commit f51b275b17
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -126,7 +126,7 @@ class Temporal
* @return string Formatted HTML
* @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');