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
Require $key in msg() functions
[lhc/web/wiklou.git]
/
includes
/
context
/
RequestContext.php
diff --git
a/includes/context/RequestContext.php
b/includes/context/RequestContext.php
index
0e1de50
..
2cabfe1
100644
(file)
--- a/
includes/context/RequestContext.php
+++ b/
includes/context/RequestContext.php
@@
-449,10
+449,12
@@
class RequestContext implements IContextSource, MutableContext {
* 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 Message key, or array of keys,
+ * or a MessageSpecifier.
* @param mixed ...
* @return Message
*/
* @param mixed ...
* @return Message
*/
- public function msg() {
+ public function msg(
$key
) {
$args = func_get_args();
return call_user_func_array( 'wfMessage', $args )->setContext( $this );
$args = func_get_args();
return call_user_func_array( 'wfMessage', $args )->setContext( $this );