X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fskins%2FBaseTemplate.php;h=0e9bc57a075c762ed0a0e05c9133d5e8322ef7c6;hp=cd63796088a55162d4bfffa797a267518ce9f413;hb=5ff92cd11ebcc3418e689a0ea3f170d4f1f78dc3;hpb=3871d05366969b1654badb034b8c6c269d662126 diff --git a/includes/skins/BaseTemplate.php b/includes/skins/BaseTemplate.php index cd63796088..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 ) { @@ -48,7 +47,7 @@ abstract class BaseTemplate extends QuickTemplate { * @deprecated since 1.33 Use ->msg() or ->getMsg() instead. */ function msgWiki( $str ) { - // TODO: Add wfDeprecated( __METHOD__, '1.33' ) after 1.33 got released + wfDeprecated( __METHOD__, '1.33' ); // Hard-deprecated in 1.34 echo $this->getMsg( $str )->parseAsBlock(); } @@ -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' )