diff --git a/src/ListView.php b/src/ListView.php index 1a4fd5c13..7b88dc1ec 100644 --- a/src/ListView.php +++ b/src/ListView.php @@ -167,13 +167,14 @@ public function itemViewTag(?string $tag): self /** * Return new instance with the HTML attributes for the container of item view. + * + * @param array|Closure $values Attribute values indexed by attribute names. * If this property is specified as a function, it must return an array of attributes and have the following * signature: * * ```php * function ($data, $key, $index, $widget) * ``` - * * Also, each attribute value can be a function too, with the same signature as in: * * ```php @@ -181,7 +182,6 @@ public function itemViewTag(?string $tag): self * 'class' => static fn($data, $key, $index, $widget) => "custom-class-{$data['id']}", * ] * ``` - * @param array|Closure $values Attribute values indexed by attribute names. * @return ListView */ public function itemViewAttributes(array|Closure $values): self