summaryrefslogtreecommitdiff
path: root/src/Columns/ElementColumn.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Columns/ElementColumn.php')
-rw-r--r--src/Columns/ElementColumn.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Columns/ElementColumn.php b/src/Columns/ElementColumn.php
index 63ef09c..b3520ae 100644
--- a/src/Columns/ElementColumn.php
+++ b/src/Columns/ElementColumn.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace Lightscale\LaralightTables\Columns;
use Closure;
@@ -37,8 +39,8 @@ abstract class ElementColumn extends Column
$attributes = new ComponentAttributeBag($this->getElemAttributes($row));
$attributes = $attributes->toHtml();
- return new HtmlString(
+ return (new HtmlString(
"<{$this->element} {$attributes}>{$content}</{$this->element}>"
- );
+ ))->toHtml();
}
}