Make travis test against PHP 7.2
[lhc/web/wiklou.git] / languages / Language.php
index 435f058..8d3984d 100644 (file)
@@ -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;
        }
 
        /**