X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fskins%2FBaseTemplate.php;h=bee4affab6ffbdd2c8f14730dae78d4d61012592;hb=327e8ea41681487382d8abe7cb111501954b9d1b;hp=cad69a594e60f33e5956ac765252a73c942301a5;hpb=f6207905dc68b4a890450d11e6833a9979051a2b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/skins/BaseTemplate.php b/includes/skins/BaseTemplate.php index cad69a594e..bee4affab6 100644 --- a/includes/skins/BaseTemplate.php +++ b/includes/skins/BaseTemplate.php @@ -33,6 +33,7 @@ abstract class BaseTemplate extends QuickTemplate { * * @param string $name Message name * @param mixed $params,... Message params + * @suppress PhanCommentParamWithoutRealParam HHVM bug T228695#5450847 * @return Message */ public function getMsg( $name /* ... */ ) { @@ -443,8 +444,10 @@ abstract class BaseTemplate extends QuickTemplate { * @param array $item Array of list item data containing some of a specific set of keys. * The "id", "class" and "itemtitle" keys will be used as attributes for the list item, * if "active" contains a value of true a "active" class will also be appended to class. + * @phan-param array{id?:string,class?:string,itemtitle?:string,active?:bool} $item * * @param array $options + * @phan-param array{tag?:string} $options * * If you want something other than a "
  • " you can pass a tag name such as * "tag" => "span" in the $options array to change the tag used. @@ -513,6 +516,7 @@ abstract class BaseTemplate extends QuickTemplate { if ( isset( $item['itemtitle'] ) ) { $attrs['title'] = $item['itemtitle']; } + // @phan-suppress-next-line PhanTypeInvalidDimOffset return Html::rawElement( $options['tag'] ?? 'li', $attrs, $html ); }