Skip to content

Commit 62ce2d0

Browse files
committed
typos
1 parent db26f57 commit 62ce2d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Forms/Controls/BaseControl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function __construct(string|Stringable|null $caption = null)
7878
/**
7979
* Sets textual caption or label.
8080
*/
81-
public function setCaption(string|Stringable $caption): static
81+
public function setCaption(string|Stringable|null $caption): static
8282
{
8383
$this->caption = $caption;
8484
return $this;

src/Forms/Controls/TextBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function getEmptyValue(): string
9595
/**
9696
* Sets the maximum number of allowed characters.
9797
*/
98-
public function setMaxLength(int $length): static
98+
public function setMaxLength(?int $length): static
9999
{
100100
$this->control->maxlength = $length;
101101
return $this;

0 commit comments

Comments
 (0)