We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db26f57 commit 62ce2d0Copy full SHA for 62ce2d0
src/Forms/Controls/BaseControl.php
@@ -78,7 +78,7 @@ public function __construct(string|Stringable|null $caption = null)
78
/**
79
* Sets textual caption or label.
80
*/
81
- public function setCaption(string|Stringable $caption): static
+ public function setCaption(string|Stringable|null $caption): static
82
{
83
$this->caption = $caption;
84
return $this;
src/Forms/Controls/TextBase.php
@@ -95,7 +95,7 @@ public function getEmptyValue(): string
95
96
* Sets the maximum number of allowed characters.
97
98
- public function setMaxLength(int $length): static
+ public function setMaxLength(?int $length): static
99
100
$this->control->maxlength = $length;
101
0 commit comments