aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáté Szabó <mszabo@wikia-inc.com>2019-10-05 18:27:30 +0200
committerReedy <reedy@wikimedia.org>2019-10-18 21:35:48 +0100
commit5ff92cd11ebcc3418e689a0ea3f170d4f1f78dc3 (patch)
tree04cc84ebbcd06fb539ab9d5f8dae4bf9127286bd
parent13d176d840f85a58dd1411621c0af93a3877bfa7 (diff)
downloadmediawikicore-5ff92cd11ebcc3418e689a0ea3f170d4f1f78dc3.tar.gz
mediawikicore-5ff92cd11ebcc3418e689a0ea3f170d4f1f78dc3.zip
BaseTemplate: Use explicit varargs in method parameters
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
-rw-r--r--includes/skins/BaseTemplate.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/includes/skins/BaseTemplate.php b/includes/skins/BaseTemplate.php
index dedf83abc88e..0e9bc57a075c 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 ) {