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
/
DerivativeContext.php
diff --git
a/includes/context/DerivativeContext.php
b/includes/context/DerivativeContext.php
index
2939510
..
9c3c42a
100644
(file)
--- a/
includes/context/DerivativeContext.php
+++ b/
includes/context/DerivativeContext.php
@@
-324,10
+324,12
@@
class DerivativeContext extends ContextSource implements MutableContext {
* it would set only the original context, and not take
* into account any changes.
*
* it would set only the original context, and not take
* into account any changes.
*
+ * @param string|string[]|MessageSpecifier $key Message key, or array of keys,
+ * or a MessageSpecifier.
* @param mixed $args,... Arguments to wfMessage
* @return Message
*/
* @param mixed $args,... Arguments to wfMessage
* @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 );