X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontext%2FDerivativeContext.php;h=9c3c42a92dc757bd6c41fa59b2f85878f9d4be3c;hb=d062560f241ccd4f04aa2dbfe1d20b83d4cdd3ad;hp=e77a058d1d8f9a1b011decbfcfd47ea321efef7f;hpb=47e2941bcda6b30ca2fca2c34e4f7dfba9d06647;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/context/DerivativeContext.php b/includes/context/DerivativeContext.php index e77a058d1d..9c3c42a92d 100644 --- a/includes/context/DerivativeContext.php +++ b/includes/context/DerivativeContext.php @@ -109,7 +109,7 @@ class DerivativeContext extends ContextSource implements MutableContext { * * @deprecated since 1.27 use a StatsdDataFactory from MediaWikiServices (preferably injected) * - * @return StatsdDataFactory + * @return MediawikiStatsdDataFactory */ public function getStats() { return MediaWikiServices::getInstance()->getStatsdDataFactory(); @@ -324,10 +324,12 @@ class DerivativeContext extends ContextSource implements MutableContext { * 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 */ - public function msg() { + public function msg( $key ) { $args = func_get_args(); return call_user_func_array( 'wfMessage', $args )->setContext( $this );