summaryrefslogtreecommitdiff
path: root/src/Columns/ElementColumn.php
diff options
context:
space:
mode:
authorSam Light <samlight1994@gmail.com>2026-02-10 00:17:41 +0000
committerSam Light <samlight1994@gmail.com>2026-02-10 00:17:41 +0000
commit47c3c4b4e772c30dac12169300e20346fa47b71f (patch)
tree5b469e853b395a8b524f60c5dd7c71dfb8efe64d /src/Columns/ElementColumn.php
parentce8068292cc90e32f93aad353891be5e5108d945 (diff)
Added declare strict types
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();
}
}