X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fskins%2FBaseTemplate.php;h=bee4affab6ffbdd2c8f14730dae78d4d61012592;hb=327e8ea41681487382d8abe7cb111501954b9d1b;hp=09e439b8361d10176721452633bedc9184ab64f9;hpb=a89ff2d168c8360913a343268e22c572b5c50c8c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/skins/BaseTemplate.php b/includes/skins/BaseTemplate.php index 09e439b836..bee4affab6 100644 --- a/includes/skins/BaseTemplate.php +++ b/includes/skins/BaseTemplate.php @@ -444,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. @@ -514,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 ); }