Use varargs for MessageLocalizer::msg and similar
[lhc/web/wiklou.git] / includes / context / ContextSource.php
index a21f404..79d4e5b 100644 (file)
@@ -162,14 +162,11 @@ abstract class ContextSource implements IContextSource {
         * @since 1.18
         * @param string|string[]|MessageSpecifier $key Message key, or array of keys,
         *   or a MessageSpecifier.
-        * @param mixed $args,...
-        * @suppress PhanCommentParamWithoutRealParam HHVM bug T228695#5450847
+        * @param mixed ...$params
         * @return Message
         */
-       public function msg( $key /* $args */ ) {
-               $args = func_get_args();
-
-               return $this->getContext()->msg( ...$args );
+       public function msg( $key, ...$params ) {
+               return $this->getContext()->msg( $key, ...$params );
        }
 
        /**