Use varargs for MessageLocalizer::msg and similar
[lhc/web/wiklou.git] / includes / htmlform / HTMLFormField.php
index b55b652..e4c6b30 100644 (file)
@@ -76,15 +76,15 @@ abstract class HTMLFormField {
         *
         * Parameters are the same as wfMessage().
         *
+        * @param string|string[]|MessageSpecifier $key
+        * @param mixed ...$params
         * @return Message
         */
-       public function msg() {
-               $args = func_get_args();
-
+       public function msg( $key, ...$params ) {
                if ( $this->mParent ) {
-                       return $this->mParent->msg( ...$args );
+                       return $this->mParent->msg( $key, ...$params );
                }
-               return wfMessage( ...$args );
+               return wfMessage( $key, ...$params );
        }
 
        /**