Fix phpdoc for wfMessage $params for phan
authorKunal Mehta <legoktm@member.fsf.org>
Fri, 8 Jun 2018 17:43:39 +0000 (10:43 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Fri, 8 Jun 2018 17:59:22 +0000 (10:59 -0700)
phan and phpDoc expect that the type of variadic params is the type of
each individual item.

Change-Id: I8229d52b3e4b70a9de6c5bb813bab776c5547e5d

includes/GlobalFunctions.php

index ee63637..335451e 100644 (file)
@@ -1336,7 +1336,7 @@ function wfGetLangObj( $langcode = false ) {
  * This function replaces all old wfMsg* functions.
  *
  * @param string|string[]|MessageSpecifier $key Message key, or array of keys, or a MessageSpecifier
- * @param string[]|string[][] ...$params Normal message parameters
+ * @param string|string[] ...$params Normal message parameters
  * @return Message
  *
  * @since 1.17
@@ -1359,7 +1359,7 @@ function wfMessage( $key, ...$params ) {
  * for the first message which is non-empty. If all messages are empty then an
  * instance of the first message key is returned.
  *
- * @param string[] ...$keys Message keys
+ * @param string ...$keys Message keys
  * @return Message
  *
  * @since 1.18