Skip to content

Commit 5940921

Browse files
committed
Remove more function declaration changes
1 parent c645df7 commit 5940921

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/PhoneNumberUtil.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,13 +1059,13 @@ public function getNumberType(PhoneNumber $number): PhoneNumberType
10591059
return $this->getNumberTypeHelper($nationalSignificantNumber, $metadata);
10601060
}
10611061

1062-
protected function getMetadataForRegionOrCallingCode(?int $countryCallingCode, ?string $regionCode): ?PhoneMetadata
1062+
protected function getMetadataForRegionOrCallingCode(int $countryCallingCode, ?string $regionCode): ?PhoneMetadata
10631063
{
10641064
return static::REGION_CODE_FOR_NON_GEO_ENTITY === $regionCode ?
10651065
$this->getMetadataForNonGeographicalRegion($countryCallingCode) : $this->getMetadataForRegion($regionCode);
10661066
}
10671067

1068-
public function getMetadataForNonGeographicalRegion(?int $countryCallingCode): ?PhoneMetadata
1068+
public function getMetadataForNonGeographicalRegion(int $countryCallingCode): ?PhoneMetadata
10691069
{
10701070
if (!isset($this->countryCallingCodeToRegionCodeMap[$countryCallingCode])) {
10711071
return null;
@@ -1230,7 +1230,7 @@ protected function prefixNumberWithCountryCallingCode(int $countryCallingCode, P
12301230
/**
12311231
* Helper function to check the country calling code is valid.
12321232
*/
1233-
protected function hasValidCountryCallingCode(?int $countryCallingCode): bool
1233+
protected function hasValidCountryCallingCode(int $countryCallingCode): bool
12341234
{
12351235
return isset($this->countryCallingCodeToRegionCodeMap[$countryCallingCode]);
12361236
}

0 commit comments

Comments
 (0)