Skip to content

Commit

Permalink
QA: fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed May 3, 2024
1 parent 00dce1f commit d659df4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/InlineEdit/InlineEdit.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class InlineEdit
*/
protected bool $showNonEditingColumns = true;

/** @var array */
/** @var array<string, mixed> */
protected array $dataAttributes = [];

public function __construct(protected Datagrid $grid, protected ?string $primaryWhereColumn = null)
Expand Down Expand Up @@ -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);
}
}

Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit d659df4

Please sign in to comment.