]> git.mxchange.org Git - friendica.git/commitdiff
Add parameter type hints in Temporal::getDateofBirthField
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 21 Sep 2019 14:52:55 +0000 (10:52 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 21 Sep 2019 14:52:55 +0000 (10:52 -0400)
src/Util/Temporal.php

index d08db24504ec50b9df470d83c71819bf86f18294..6a331104eec74caaf50f62de5c551aedb85c52a4 100644 (file)
@@ -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');