Language::validateLocale should pass with locale 'zxx'.
This commit is contained in:
parent
1956908aa7
commit
3c9fa2df13
@ -229,7 +229,7 @@ final class Language extends AbstractStyle
|
||||
return strtolower($locale) . '-' . strtoupper($locale);
|
||||
}
|
||||
|
||||
if ($locale !== null && strstr($locale, '-') === false) {
|
||||
if ($locale !== null && $locale !== 'zxx' && strstr($locale, '-') === false) {
|
||||
throw new \InvalidArgumentException($locale . ' is not a valid language code');
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user