dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use varargs for MessageLocalizer::msg and similar
[lhc/web/wiklou.git]
/
includes
/
actions
/
Action.php
diff --git
a/includes/actions/Action.php
b/includes/actions/Action.php
index
4be2f7d
..
6497cab
100644
(file)
--- a/
includes/actions/Action.php
+++ b/
includes/actions/Action.php
@@
-252,11
+252,12
@@
abstract class Action implements MessageLocalizer {
* Get a Message object with context set
* Parameters are the same as wfMessage()
*
* Get a Message object with context set
* Parameters are the same as wfMessage()
*
+ * @param string|string[]|MessageSpecifier $key
+ * @param mixed ...$params
* @return Message
*/
* @return Message
*/
- final public function msg( $key ) {
- $params = func_get_args();
- return $this->getContext()->msg( ...$params );
+ final public function msg( $key, ...$params ) {
+ return $this->getContext()->msg( $key, ...$params );
}
/**
}
/**