diff --git a/includes/htmlform/HTMLFormField.php b/includes/htmlform/HTMLFormField.php
index 0702635e4fa..16dc46591b5 100644
--- a/includes/htmlform/HTMLFormField.php
+++ b/includes/htmlform/HTMLFormField.php
@@ -77,7 +77,9 @@ abstract class HTMLFormField {
*
* @return Message
*/
- public function msg( ...$args ) {
+ public function msg() {
+ $args = func_get_args();
+
if ( $this->mParent ) {
return $this->mParent->msg( ...$args );
}