With the removal of HHVM support, we can now use explicit varargs
in function arguments. This patch updates the BaseTemplateclass to
do so, and also removes PhanCommentParamWithoutRealParam check suppressions,
which are now redundant.
Bug: T231710
Change-Id: If78bd1556c862a472afe3646fd362b3c6baefbe0
* Get a Message object with its context set
*
* @param string $name Message name
- * @param mixed $params,... Message params
- * @suppress PhanCommentParamWithoutRealParam HHVM bug T228695#5450847
+ * @param mixed ...$params Message params
* @return Message
*/
- public function getMsg( $name /* ... */ ) {
- return $this->getSkin()->msg( ...func_get_args() );
+ public function getMsg( $name, ...$params ) {
+ return $this->getSkin()->msg( $name, ...$params );
}
function msg( $str ) {