From: Eddie Greiner-Petter Date: Sat, 18 Feb 2017 13:13:39 +0000 (+0100) Subject: Fixed documentation on Parser::getVariableValue X-Git-Tag: 1.31.0-rc.0~4051^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=635040c91d6502a54537f31b0859998c55c1e9b8;p=lhc%2Fweb%2Fwiklou.git 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 --- 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