@@ -89,7 +89,7 @@ public static function alpha3CodeExists(string $alpha3Code): bool
8989 *
9090 * @throws MissingResourceException if the country code does not exist
9191 */
92- public static function getName (string $ country , string $ displayLocale = null ): string
92+ public static function getName (string $ country , ? string $ displayLocale = null ): string
9393 {
9494 return self ::readEntry (['Names ' , $ country ], $ displayLocale );
9595 }
@@ -99,7 +99,7 @@ public static function getName(string $country, string $displayLocale = null): s
9999 *
100100 * @throws MissingResourceException if the country code does not exist
101101 */
102- public static function getAlpha3Name (string $ alpha3Code , string $ displayLocale = null ): string
102+ public static function getAlpha3Name (string $ alpha3Code , ? string $ displayLocale = null ): string
103103 {
104104 return self ::getName (self ::getAlpha2Code ($ alpha3Code ), $ displayLocale );
105105 }
@@ -109,7 +109,7 @@ public static function getAlpha3Name(string $alpha3Code, string $displayLocale =
109109 *
110110 * @return array<string, string>
111111 */
112- public static function getNames (string $ displayLocale = null ): array
112+ public static function getNames (? string $ displayLocale = null ): array
113113 {
114114 return self ::asort (self ::readEntry (['Names ' ], $ displayLocale ), $ displayLocale );
115115 }
@@ -121,7 +121,7 @@ public static function getNames(string $displayLocale = null): array
121121 *
122122 * @return array<string, string>
123123 */
124- public static function getAlpha3Names (string $ displayLocale = null ): array
124+ public static function getAlpha3Names (? string $ displayLocale = null ): array
125125 {
126126 $ alpha2Names = self ::getNames ($ displayLocale );
127127 $ alpha3Names = [];
0 commit comments