From f51b275b178be01969105c4ee6e449c9008a3a08 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 21 Sep 2019 10:52:55 -0400 Subject: [PATCH] Add parameter type hints in Temporal::getDateofBirthField --- src/Util/Temporal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/Temporal.php b/src/Util/Temporal.php index d08db24504..6a331104ee 100644 --- a/src/Util/Temporal.php +++ b/src/Util/Temporal.php @@ -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'); -- 2.39.5