Skip to content

Commit

Permalink
#14: comply with psalm.
Browse files Browse the repository at this point in the history
  • Loading branch information
glpzzz committed Sep 7, 2024
1 parent 78b18b0 commit 4d4b158
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ListView.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,12 @@ public function itemView(string|Closure $value): self

public function itemViewTag(?string $tag): self
{
if ($tag === '') {
throw new InvalidArgumentException('Tag name cannot be empty.');

Check warning on line 142 in src/ListView.php

View check run for this annotation

Codecov / codecov/patch

src/ListView.php#L142

Added line #L142 was not covered by tests
}

$new = clone $this;
$new->itemViewTag= $tag;
$new->itemViewTag = $tag;
return $new;
}

Expand Down

0 comments on commit 4d4b158

Please sign in to comment.