Skip to content

Commit 66abbcc

Browse files
committed
compatibility with nette forms 3.2.5
1 parent a8f6584 commit 66abbcc

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
],
1919
"require": {
2020
"php": ">=8.1",
21-
"nette/forms": "3.2.4",
21+
"nette/forms": "3.2.5",
2222
"nette/application": "^3.0"
2323
},
2424
"require-dev": {

src/Traits/BootstrapContainerTrait.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,11 @@ public function addBootstrapDateTime(string $name, $label): DateTimeInput
184184
* @param Html|string|null $label
185185
* @return TextInput
186186
*/
187-
public function addEmail(string $name, $label = null): NetteTextInput
188-
{
187+
public function addEmail(
188+
string $name,
189+
string|\Stringable|null $label = null,
190+
int $maxLength = 255
191+
): NetteTextInput {
189192
return $this->addText($name, $label)
190193
->setNullable(BootstrapForm::$allwaysUseNullable)
191194
->addRule(Form::Email);

0 commit comments

Comments
 (0)