@@ -89,7 +89,7 @@ public static function alpha3CodeExists(string $alpha3Code): bool
89
89
*
90
90
* @throws MissingResourceException if the country code does not exist
91
91
*/
92
- public static function getName (string $ country , string $ displayLocale = null ): string
92
+ public static function getName (string $ country , ? string $ displayLocale = null ): string
93
93
{
94
94
return self ::readEntry (['Names ' , $ country ], $ displayLocale );
95
95
}
@@ -99,7 +99,7 @@ public static function getName(string $country, string $displayLocale = null): s
99
99
*
100
100
* @throws MissingResourceException if the country code does not exist
101
101
*/
102
- public static function getAlpha3Name (string $ alpha3Code , string $ displayLocale = null ): string
102
+ public static function getAlpha3Name (string $ alpha3Code , ? string $ displayLocale = null ): string
103
103
{
104
104
return self ::getName (self ::getAlpha2Code ($ alpha3Code ), $ displayLocale );
105
105
}
@@ -109,7 +109,7 @@ public static function getAlpha3Name(string $alpha3Code, string $displayLocale =
109
109
*
110
110
* @return array<string, string>
111
111
*/
112
- public static function getNames (string $ displayLocale = null ): array
112
+ public static function getNames (? string $ displayLocale = null ): array
113
113
{
114
114
return self ::asort (self ::readEntry (['Names ' ], $ displayLocale ), $ displayLocale );
115
115
}
@@ -121,7 +121,7 @@ public static function getNames(string $displayLocale = null): array
121
121
*
122
122
* @return array<string, string>
123
123
*/
124
- public static function getAlpha3Names (string $ displayLocale = null ): array
124
+ public static function getAlpha3Names (? string $ displayLocale = null ): array
125
125
{
126
126
$ alpha2Names = self ::getNames ($ displayLocale );
127
127
$ alpha3Names = [];
0 commit comments