We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1956908 commit 3c9fa2dCopy full SHA for 3c9fa2d
src/PhpWord/Style/Language.php
@@ -229,7 +229,7 @@ private function validateLocale($locale)
229
return strtolower($locale) . '-' . strtoupper($locale);
230
}
231
232
- if ($locale !== null && strstr($locale, '-') === false) {
+ if ($locale !== null && $locale !== 'zxx' && strstr($locale, '-') === false) {
233
throw new \InvalidArgumentException($locale . ' is not a valid language code');
234
235
0 commit comments