Fixed documentation on Parser::getVariableValue
authorEddie Greiner-Petter <git@eddie-sh.de>
Sat, 18 Feb 2017 13:13:39 +0000 (14:13 +0100)
committerEddieGP <wikimedia.org@eddie-sh.de>
Sat, 18 Feb 2017 22:41:12 +0000 (22:41 +0000)
$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

index 1d55c98..86aa06a 100644 (file)
@@ -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