From: Max Semenik Date: Fri, 8 Jun 2018 06:06:02 +0000 (-0700) Subject: Fix wfMessage() annotation X-Git-Tag: 1.34.0-rc.0~5153 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=f16caa5b06e0c428e19d46b7af2ce8d29c5831b6;p=lhc%2Fweb%2Fwiklou.git Fix wfMessage() annotation $params is a variadic parameter now, so it must be treated as an array. Same thing for wfMessageFallback(). Change-Id: I606deb7ea0fb9be25ac79aadfbab0cc44bdc36a0 --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 6b4e4ee4df..ee63637628 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 ...$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|string[] ...$keys Message keys + * @param string[] ...$keys Message keys * @return Message * * @since 1.18