diff --git a/src/PhoneNumberToTimeZonesMapper.php b/src/PhoneNumberToTimeZonesMapper.php index 9f5da839d..13f8bb1fc 100644 --- a/src/PhoneNumberToTimeZonesMapper.php +++ b/src/PhoneNumberToTimeZonesMapper.php @@ -81,7 +81,7 @@ public static function getUnknownTimeZone() * the validity of the number passed in. * * @param $number PhoneNumber the phone number for which we want to get the time zones to which it belongs - * @return array a list of the corresponding time zones or a single element list with the default + * @return string[] a list of the corresponding time zones or a single element list with the default * unknown time zone if no other time zone was found or if the number was invalid */ public function getTimeZonesForNumber(PhoneNumber $number) @@ -103,7 +103,7 @@ public function getTimeZonesForNumber(PhoneNumber $number) * Returns the list of time zones corresponding to the country calling code of {@code number}. * * @param $number PhoneNumber the phone number to look up - * @return array the list of corresponding time zones or a single element list with the default + * @return string[] the list of corresponding time zones or a single element list with the default * unknown time zone if no other time zone was found */ protected function getCountryLevelTimeZonesforNumber(PhoneNumber $number) @@ -120,7 +120,7 @@ protected function getCountryLevelTimeZonesforNumber(PhoneNumber $number) * for geo-localization. * * @param $number PhoneNumber a valid phone number for which we want to get the time zones to which it belongs - * @return array a list of the corresponding time zones or a single element list with the default + * @return string[] a list of the corresponding time zones or a single element list with the default * unknown time zone if no other time zone was found or if the number was invalid */ public function getTimeZonesForGeographicalNumber(PhoneNumber $number) @@ -132,7 +132,7 @@ public function getTimeZonesForGeographicalNumber(PhoneNumber $number) * Returns a list of time zones to which a geocodable phone number belongs. * * @param PhoneNumber $number The phone number for which we want to get the time zones to which it belongs - * @return array the list of correspondiing time zones or a single element list with the default + * @return string[] the list of corresponding time zones or a single element list with the default * unknown timezone if no other time zone was found or if the number was invalid */ protected function getTimeZonesForGeocodableNumber(PhoneNumber $number) diff --git a/src/prefixmapper/PrefixTimeZonesMap.php b/src/prefixmapper/PrefixTimeZonesMap.php index f7338d4f2..3ec6c8a28 100644 --- a/src/prefixmapper/PrefixTimeZonesMap.php +++ b/src/prefixmapper/PrefixTimeZonesMap.php @@ -25,7 +25,7 @@ public function __construct($map) * instead of a long. * * @param $number PhoneNumber the phone number to look up - * @return array the list of corresponding time zones + * @return string[] the list of corresponding time zones */ public function lookupTimeZonesForNumber(PhoneNumber $number) { @@ -45,7 +45,7 @@ public function lookupTimeZonesForNumber(PhoneNumber $number) * input. Also, any of its prefixes, such as 16502, is also valid. * * @param $key int the key to look up - * @return array the list of corresponding time zones + * @return string[] the list of corresponding time zones */ protected function lookupTimeZonesForNumberKey($key) { @@ -64,7 +64,7 @@ protected function lookupTimeZonesForNumberKey($key) * Split {@code timezonesString} into all the time zones that are part of it. * * @param $timezonesString String - * @return array + * @return string[] */ protected function tokenizeRawOutputString($timezonesString) { @@ -75,7 +75,7 @@ protected function tokenizeRawOutputString($timezonesString) * Returns the list of time zones {@code number}'s calling country code corresponds to. * * @param $number PhoneNumber the phone number to look up - * @return array the list of corresponding time zones + * @return string[] the list of corresponding time zones */ public function lookupCountryLevelTimeZonesForNumber(PhoneNumber $number) {