Skip to content

Commit

Permalink
Fix type-hint in HasMax::class. (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Jul 19, 2023
1 parent 90c8e90 commit cd29a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Attribute/Input/HasMax.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ trait HasMax
*
* @link https://html.spec.whatwg.org/multipage/input.html#attr-input-max
*/
public function max(int $value): static
public function max(int|string $value): static
{
$new = clone $this;
$new->attributes['max'] = $value;
Expand Down

0 comments on commit cd29a73

Please sign in to comment.