From 635040c91d6502a54537f31b0859998c55c1e9b8 Mon Sep 17 00:00:00 2001 From: Eddie Greiner-Petter Date: Sat, 18 Feb 2017 14:13:39 +0100 Subject: [PATCH] Fixed documentation on Parser::getVariableValue $index is definitely not a int here, see the big switch( $index )-case statement below. It switches for strings, not numbers. Also, note that this is lowercase, one might expect it to be uppercase as this is how magic words are written in wikitext. Bug: T96633 Change-Id: Iea93c3796fdee4ed7abbb7608e89b627ca95aead --- includes/parser/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 1d55c980a1..86aa06a18e 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -2483,7 +2483,7 @@ class Parser { * * @private * - * @param int $index + * @param string $index Magic variable identifier as mapped in MagicWord::$mVariableIDs * @param bool|PPFrame $frame * * @throws MWException -- 2.20.1