From: Umherirrender Date: Sun, 14 Apr 2019 13:01:20 +0000 (+0200) Subject: Restore func_get_args in HTMLFormField X-Git-Tag: 1.34.0-rc.0~1979^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=cb897cbad4e8e2208baa6738f3de85bb66779563;p=lhc%2Fweb%2Fwiklou.git Restore func_get_args in HTMLFormField Mocking variadic arguments does not work in hhvm Follow-Up: I066ec95a7beb7c0665146195a08e7cce1222c788 Change-Id: Ic3b689d003a4659abdc4c9344ffd83f24f448912 --- diff --git a/includes/htmlform/HTMLFormField.php b/includes/htmlform/HTMLFormField.php index 0702635e4f..16dc46591b 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 ); }