@@ -152,8 +152,8 @@ public static function getDefault()
152
152
/**
153
153
* Not supported. Returns the localized display name for the locale language.
154
154
*
155
- * @param string $locale The locale code to return the display language from
156
- * @param string $inLocale Optional format locale code to use to display the language name
155
+ * @param string $locale The locale code to return the display language from
156
+ * @param string|null $inLocale Optional format locale code to use to display the language name
157
157
*
158
158
* @return string
159
159
*
@@ -169,8 +169,8 @@ public static function getDisplayLanguage(string $locale, string $inLocale = nul
169
169
/**
170
170
* Not supported. Returns the localized display name for the locale.
171
171
*
172
- * @param string $locale The locale code to return the display locale name from
173
- * @param string $inLocale Optional format locale code to use to display the locale name
172
+ * @param string $locale The locale code to return the display locale name from
173
+ * @param string|null $inLocale Optional format locale code to use to display the locale name
174
174
*
175
175
* @return string
176
176
*
@@ -186,8 +186,8 @@ public static function getDisplayName(string $locale, string $inLocale = null)
186
186
/**
187
187
* Not supported. Returns the localized display name for the locale region.
188
188
*
189
- * @param string $locale The locale code to return the display region from
190
- * @param string $inLocale Optional format locale code to use to display the region name
189
+ * @param string $locale The locale code to return the display region from
190
+ * @param string|null $inLocale Optional format locale code to use to display the region name
191
191
*
192
192
* @return string
193
193
*
@@ -203,8 +203,8 @@ public static function getDisplayRegion(string $locale, string $inLocale = null)
203
203
/**
204
204
* Not supported. Returns the localized display name for the locale script.
205
205
*
206
- * @param string $locale The locale code to return the display script from
207
- * @param string $inLocale Optional format locale code to use to display the script name
206
+ * @param string $locale The locale code to return the display script from
207
+ * @param string|null $inLocale Optional format locale code to use to display the script name
208
208
*
209
209
* @return string
210
210
*
@@ -220,8 +220,8 @@ public static function getDisplayScript(string $locale, string $inLocale = null)
220
220
/**
221
221
* Not supported. Returns the localized display name for the locale variant.
222
222
*
223
- * @param string $locale The locale code to return the display variant from
224
- * @param string $inLocale Optional format locale code to use to display the variant name
223
+ * @param string $locale The locale code to return the display variant from
224
+ * @param string|null $inLocale Optional format locale code to use to display the variant name
225
225
*
226
226
* @return string
227
227
*
@@ -301,10 +301,10 @@ public static function getScript(string $locale)
301
301
/**
302
302
* Not supported. Returns the closest language tag for the locale.
303
303
*
304
- * @param array $langtag A list of the language tags to compare to locale
305
- * @param string $locale The locale to use as the language range when matching
306
- * @param bool $canonicalize If true, the arguments will be converted to canonical form before matching
307
- * @param string $default The locale to use if no match is found
304
+ * @param array $langtag A list of the language tags to compare to locale
305
+ * @param string $locale The locale to use as the language range when matching
306
+ * @param bool $canonicalize If true, the arguments will be converted to canonical form before matching
307
+ * @param string|null $default The locale to use if no match is found
308
308
*
309
309
* @see https://php.net/locale.lookup
310
310
*
0 commit comments