Language::validateLocale should pass with locale 'zxx'.

This commit is contained in:
Stathis Papadopoulos 2019-01-28 10:50:28 +01:00
parent 1956908aa7
commit 3c9fa2df13
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}