From: Thiemo Kreuz Date: Thu, 31 Jan 2019 11:26:13 +0000 (+0100) Subject: languages: Fix some soft type hints in the Language class X-Git-Tag: 1.34.0-rc.0~2978 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=673dcee058fedd139d315d51264c7bd0d119949b;p=lhc%2Fweb%2Fwiklou.git languages: Fix some soft type hints in the Language class Change-Id: Ic9ffbc79c6932db97175d0a1da75df45ba3455e0 --- diff --git a/languages/Language.php b/languages/Language.php index ef9137dc37..a7ac0dbc82 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -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 ) {