Restore func_get_args in HTMLFormField
authorUmherirrender <umherirrender_de.wp@web.de>
Sun, 14 Apr 2019 13:01:20 +0000 (15:01 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Sun, 14 Apr 2019 13:01:20 +0000 (15:01 +0200)
Mocking variadic arguments does not work in hhvm

Follow-Up: I066ec95a7beb7c0665146195a08e7cce1222c788
Change-Id: Ic3b689d003a4659abdc4c9344ffd83f24f448912

includes/htmlform/HTMLFormField.php

index 0702635..16dc465 100644 (file)
@@ -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 );
                }