@@ -711,7 +711,7 @@ public static function formattingRuleHasFirstGroupOnly($nationalPrefixFormatting
711
711
/**
712
712
* Returns all regions the library has metadata for.
713
713
*
714
- * @return array An unordered array of the two-letter region codes for every geographical region the
714
+ * @return string[] An unordered array of the two-letter region codes for every geographical region the
715
715
* library supports
716
716
*/
717
717
public function getSupportedRegions ()
@@ -722,7 +722,7 @@ public function getSupportedRegions()
722
722
/**
723
723
* Returns all global network calling codes the library has metadata for.
724
724
*
725
- * @return array An unordered array of the country calling codes for every non-geographical entity
725
+ * @return int[] An unordered array of the country calling codes for every non-geographical entity
726
726
* the library supports
727
727
*/
728
728
public function getSupportedGlobalNetworkCallingCodes ()
@@ -736,7 +736,7 @@ public function getSupportedGlobalNetworkCallingCodes()
736
736
* used to populate a drop-down box of country calling codes for a phone-number widget, for
737
737
* instance.
738
738
*
739
- * @return array An unordered array of the country calling codes for every geographical and
739
+ * @return int[] An unordered array of the country calling codes for every geographical and
740
740
* non-geographical entity the library supports
741
741
*/
742
742
public function getSupportedCallingCodes ()
@@ -804,7 +804,7 @@ private function getSupportedTypesForMetadata(PhoneMetadata $metadata)
804
804
* No types will be returned for invalid or unknown region codes.
805
805
*
806
806
* @param string $regionCode
807
- * @return array
807
+ * @return (PhoneNumberType::*)[]
808
808
*/
809
809
public function getSupportedTypesForRegion ($ regionCode )
810
810
{
@@ -822,7 +822,7 @@ public function getSupportedTypesForRegion($regionCode)
822
822
* present) and UNKNOWN.
823
823
*
824
824
* @param int $countryCallingCode
825
- * @return array
825
+ * @return (PhoneNumberType::*)[]
826
826
*/
827
827
public function getSupportedTypesForNonGeoEntity ($ countryCallingCode )
828
828
{
@@ -2447,7 +2447,7 @@ protected function testNumberLength($number, PhoneMetadata $metadata, $type = Ph
2447
2447
* non-geographical country calling codes, the region code 001 is returned. Also, in the case
2448
2448
* of no region code being found, an empty list is returned.
2449
2449
* @param int $countryCallingCode
2450
- * @return array
2450
+ * @return string[]
2451
2451
*/
2452
2452
public function getRegionCodesForCountryCode ($ countryCallingCode )
2453
2453
{
@@ -3190,7 +3190,7 @@ public function parse($numberToParse, $defaultRegion = null, ?PhoneNumber $phone
3190
3190
*
3191
3191
* @param PhoneNumber $number the phone number to be formatted
3192
3192
* @param int $numberFormat the format the phone number should be formatted into
3193
- * @param array $userDefinedFormats formatting rules specified by clients
3193
+ * @param NumberFormat[] $userDefinedFormats formatting rules specified by clients
3194
3194
* @return String the formatted phone number
3195
3195
*/
3196
3196
public function formatByPattern (PhoneNumber $ number , $ numberFormat , array $ userDefinedFormats )
0 commit comments