diff --git a/src/InlineEdit/InlineEdit.php b/src/InlineEdit/InlineEdit.php index 84c3c616..ded87e13 100644 --- a/src/InlineEdit/InlineEdit.php +++ b/src/InlineEdit/InlineEdit.php @@ -58,7 +58,7 @@ class InlineEdit */ protected bool $showNonEditingColumns = true; - /** @var array */ + /** @var array */ protected array $dataAttributes = []; public function __construct(protected Datagrid $grid, protected ?string $primaryWhereColumn = null) @@ -99,7 +99,7 @@ public function renderButton(Row $row): Html if ($this->dataAttributes !== []) { foreach ($this->dataAttributes as $key => $value) { - $a->data((string) $key, $value); + $a->data($key, $value); } } @@ -133,7 +133,7 @@ public function renderButtonAdd(): Html if ($this->dataAttributes !== []) { foreach ($this->dataAttributes as $key => $value) { - $a->data((string) $key, $value); + $a->data($key, $value); } }