Skip to content

Commit 43d81c6

Browse files
IncidentDetail: Add method return type and use HtmlElement
1 parent 5891154 commit 43d81c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/Notifications/Widget/Detail/IncidentDetail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected function createSource()
9292
];
9393
}
9494

95-
protected function createObjectTag()
95+
protected function createObjectTag(): array
9696
{
9797
$tags = [];
9898
foreach ($this->incident->object->object_extra_tag as $extraTag) {
@@ -104,7 +104,7 @@ protected function createObjectTag()
104104
}
105105

106106
return [
107-
Html::tag('h2', t('Object Tags')),
107+
new HtmlElement('h2', null, new Text(t('Object Tags'))),
108108
(new Table())
109109
->addHtml(...$tags)
110110
->addAttributes(['class' => 'object-tags-table'])

0 commit comments

Comments
 (0)