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
/
context
/
RequestContext.php
diff --git
a/includes/context/RequestContext.php
b/includes/context/RequestContext.php
index
cbcaba1
..
73b8c5c
100644
(file)
--- a/
includes/context/RequestContext.php
+++ b/
includes/context/RequestContext.php
@@
-416,14
+416,11
@@
class RequestContext implements IContextSource, MutableContext {
*
* @param string|string[]|MessageSpecifier $key Message key, or array of keys,
* or a MessageSpecifier.
*
* @param string|string[]|MessageSpecifier $key Message key, or array of keys,
* or a MessageSpecifier.
- * @param mixed $args,...
- * @suppress PhanCommentParamWithoutRealParam HHVM bug T228695#5450847
+ * @param mixed ...$params
* @return Message
*/
* @return Message
*/
- public function msg( $key ) {
- $args = func_get_args();
-
- return wfMessage( ...$args )->setContext( $this );
+ public function msg( $key, ...$params ) {
+ return wfMessage( $key, ...$params )->setContext( $this );
}
/**
}
/**