Skip to content

Commit 1e1899c

Browse files
authored
Fix return type for Locale::parseLocale - it can return null
1 parent fec6af6 commit 1e1899c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Intl/Icu/Locale.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public static function lookup(array $languageTag, string $locale, bool $canonica
279279
/**
280280
* Not supported. Returns an associative array of locale identifier subtags.
281281
*
282-
* @return array Associative array with the extracted subtags
282+
* @return array|null Associative array with the extracted subtags
283283
*
284284
* @see https://php.net/locale.parselocale
285285
*

0 commit comments

Comments
 (0)