Fix wfMessage() annotation
$params is a variadic parameter now, so it must be treated as an array. Same thing for wfMessageFallback(). Change-Id: I606deb7ea0fb9be25ac79aadfbab0cc44bdc36a0
This commit is contained in:
parent
2a9f1056f1
commit
f16caa5b06
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue