diff options
Diffstat (limited to 'Echo/includes/formatters/EchoEventDigestFormatter.php')
-rw-r--r-- | Echo/includes/formatters/EchoEventDigestFormatter.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Echo/includes/formatters/EchoEventDigestFormatter.php b/Echo/includes/formatters/EchoEventDigestFormatter.php index c4a9d436..85c9e927 100644 --- a/Echo/includes/formatters/EchoEventDigestFormatter.php +++ b/Echo/includes/formatters/EchoEventDigestFormatter.php @@ -7,6 +7,13 @@ * arguments passed in the constructor (user and language) */ abstract class EchoEventDigestFormatter { + + /** @var User */ + protected $user; + + /** @var Language */ + protected $language; + public function __construct( User $user, Language $language ) { $this->user = $user; $this->language = $language; @@ -16,13 +23,14 @@ abstract class EchoEventDigestFormatter { * Equivalent to IContextSource::msg for the current * language * + * @param string ...$args * @return Message */ - protected function msg( /* ,,, */ ) { + protected function msg( ...$args ) { /** * @var Message $msg */ - $msg = wfMessage( ...func_get_args() ); + $msg = wfMessage( ...$args ); $msg->inLanguage( $this->language ); return $msg; |