Skip to content

Commit

Permalink
WrappedIcons: fixed compatibility with PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
janpecha committed Dec 8, 2023
1 parent 5e3624b commit 4f52251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WrappedIcons.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function get($icon)

$iconHtml = \Nette\Utils\Html::el($this->tagName)
->class($className)
->setHtml($this->icons->get($icon));
->setHtml((string) $this->icons->get($icon));

return new Icon((string) $iconHtml);
}
Expand Down

0 comments on commit 4f52251

Please sign in to comment.