From d659df428c8f822b588916f2a8d02aee024e9ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Felix=20=C5=A0ulc?= Date: Fri, 3 May 2024 21:56:02 +0200 Subject: [PATCH] QA: fix phpstan --- src/InlineEdit/InlineEdit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } }