languages: Fix some soft type hints in the Language class
authorThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Thu, 31 Jan 2019 11:26:13 +0000 (12:26 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Thu, 31 Jan 2019 19:21:54 +0000 (19:21 +0000)
Change-Id: Ic9ffbc79c6932db97175d0a1da75df45ba3455e0

languages/Language.php

index ef9137d..a7ac0db 100644 (file)
@@ -507,7 +507,7 @@ class Language {
         * Returns an array of localised namespaces indexed by their numbers. If the namespace is not
         * available in localised form, it will be included in English.
         *
-        * @return array
+        * @return string[] List of localized namespace names, indexed by numeric namespace ID.
         */
        public function getNamespaces() {
                if ( is_null( $this->namespaceNames ) ) {
@@ -4642,7 +4642,7 @@ class Language {
 
        /**
         * @param string $talk
-        * @return mixed
+        * @return string
         */
        function fixVariableInNamespace( $talk ) {
                if ( strpos( $talk, '$1' ) === false ) {