diff options
Diffstat (limited to 'Echo/includes/formatters/EchoEventDigestFormatter.php')
-rw-r--r-- | Echo/includes/formatters/EchoEventDigestFormatter.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Echo/includes/formatters/EchoEventDigestFormatter.php b/Echo/includes/formatters/EchoEventDigestFormatter.php index 1fb1f765..c4a9d436 100644 --- a/Echo/includes/formatters/EchoEventDigestFormatter.php +++ b/Echo/includes/formatters/EchoEventDigestFormatter.php @@ -22,7 +22,7 @@ abstract class EchoEventDigestFormatter { /** * @var Message $msg */ - $msg = call_user_func_array( 'wfMessage', func_get_args() ); + $msg = wfMessage( ...func_get_args() ); $msg->inLanguage( $this->language ); return $msg; @@ -31,7 +31,7 @@ abstract class EchoEventDigestFormatter { /** * @param EchoEvent[] $events * @param string $distributionType 'web' or 'email' - * @return array|bool|string Output format depends on implementation, false if it cannot be formatted + * @return string[]|false Output format depends on implementation, false if it cannot be formatted */ final public function format( array $events, $distributionType ) { $models = []; @@ -47,7 +47,7 @@ abstract class EchoEventDigestFormatter { /** * @param EchoEventPresentationModel[] $models - * @return string|array + * @return string[]|string */ abstract protected function formatModels( array $models ); } |