From 673dcee058fedd139d315d51264c7bd0d119949b Mon Sep 17 00:00:00 2001 From: Thiemo Kreuz Date: Thu, 31 Jan 2019 12:26:13 +0100 Subject: [PATCH] languages: Fix some soft type hints in the Language class Change-Id: Ic9ffbc79c6932db97175d0a1da75df45ba3455e0 --- languages/Language.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) { -- 2.20.1