X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fskins%2FBaseTemplate.php;h=0e9bc57a075c762ed0a0e05c9133d5e8322ef7c6;hp=403f5b253872fef20dd4961e121a5af561984dca;hb=5ff92cd11ebcc3418e689a0ea3f170d4f1f78dc3;hpb=4e9eb2f8d75784c78715e7dc3a9c8084d5c54943 diff --git a/includes/skins/BaseTemplate.php b/includes/skins/BaseTemplate.php index 403f5b2538..0e9bc57a07 100644 --- a/includes/skins/BaseTemplate.php +++ b/includes/skins/BaseTemplate.php @@ -32,12 +32,11 @@ abstract class BaseTemplate extends QuickTemplate { * 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 ) { @@ -756,6 +755,7 @@ abstract class BaseTemplate extends QuickTemplate { */ public function getTrail() { return WrappedString::join( "\n", [ + // @phan-suppress-next-line PhanTypeMismatchArgument MWDebug::getDebugHTML( $this->getSkin()->getContext() ), $this->get( 'bottomscripts' ), $this->get( 'reporttime' )