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.
2 parents 1956908 + 3c9fa2d commit af31fc5Copy full SHA for af31fc5
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