X-Git-Url: https://git.cyclocoop.org/admin/?a=blobdiff_plain;f=languages%2FLanguage.php;h=8d3984dec0e40ba483d1c6074eba429993c483b0;hb=9aaa97766c65a903b312be00a1e22058cb958c5f;hp=435f058367af0cb7e0f7cd6450b7aec11ae1abec;hpb=d6f84e825c5b2ea214b460c5a8b204927213e75c;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/Language.php b/languages/Language.php index 435f058367..8d3984dec0 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -167,7 +167,7 @@ class Language { * The form is '/(?:([strong ltr codepoint])|([strong rtl codepoint]))/u' . * * Generated by UnicodeJS (see tools/strongDir) from the UCD; see - * https://git.wikimedia.org/summary/unicodejs.git . + * https://phabricator.wikimedia.org/diffusion/GUJS/ . */ // @codingStandardsIgnoreStart // @codeCoverageIgnoreStart @@ -178,6 +178,7 @@ class Language { /** * Get a cached or new language object for a given language code * @param string $code + * @throws MWException * @return Language */ static function factory( $code ) { @@ -3267,7 +3268,7 @@ class Language { } } - return $number; + return (string)$number; } /**