From: Kunal Mehta Date: Fri, 8 Jun 2018 17:43:39 +0000 (-0700) Subject: Fix phpdoc for wfMessage $params for phan X-Git-Tag: 1.34.0-rc.0~5148 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=b7116e4f7d53f7fc29020d4acb02971fe8b0c302;p=lhc%2Fweb%2Fwiklou.git Fix phpdoc for wfMessage $params for phan phan and phpDoc expect that the type of variadic params is the type of each individual item. Change-Id: I8229d52b3e4b70a9de6c5bb813bab776c5547e5d --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index ee63637628..335451e7b7 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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