X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fcontext%2FRequestContext.php;h=2ac41925d831b124b7da1bb6c7eb7db574bc77bc;hp=0e1de504e5f5f72d55911765398136237a100bbf;hb=36395150104588f2afea866c330b683e4329fa48;hpb=bb866e75d0c6e7e47f59371fd5b9e37fc6e66fc8 diff --git a/includes/context/RequestContext.php b/includes/context/RequestContext.php index 0e1de504e5..2ac41925d8 100644 --- a/includes/context/RequestContext.php +++ b/includes/context/RequestContext.php @@ -138,7 +138,7 @@ class RequestContext implements IContextSource, MutableContext { * * @deprecated since 1.27 use a StatsdDataFactory from MediaWikiServices (preferably injected) * - * @return MediawikiStatsdDataFactory + * @return IBufferingStatsdDataFactory */ public function getStats() { return MediaWikiServices::getInstance()->getStatsdDataFactory(); @@ -449,10 +449,12 @@ class RequestContext implements IContextSource, MutableContext { * 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 */ - public function msg() { + public function msg( $key ) { $args = func_get_args(); return call_user_func_array( 'wfMessage', $args )->setContext( $this );