Skip to content

Commit

Permalink
compatibility with nette forms 3.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dakorpar committed Oct 24, 2024
1 parent a8f6584 commit 66abbcc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"require": {
"php": ">=8.1",
"nette/forms": "3.2.4",
"nette/forms": "3.2.5",
"nette/application": "^3.0"
},
"require-dev": {
Expand Down
7 changes: 5 additions & 2 deletions src/Traits/BootstrapContainerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,11 @@ public function addBootstrapDateTime(string $name, $label): DateTimeInput
* @param Html|string|null $label
* @return TextInput
*/
public function addEmail(string $name, $label = null): NetteTextInput
{
public function addEmail(
string $name,
string|\Stringable|null $label = null,
int $maxLength = 255
): NetteTextInput {
return $this->addText($name, $label)
->setNullable(BootstrapForm::$allwaysUseNullable)
->addRule(Form::Email);
Expand Down

0 comments on commit 66abbcc

Please sign in to comment.