Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Contact/ContactForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public function getFormName(): string
public function getRules(): array
{
return [
'name' => [new RequiredHtmlOptions(new Required())],
'email' => [new RequiredHtmlOptions(new Required()), new EmailHtmlOptions(new Email())],
'subject' => [new RequiredHtmlOptions(new Required())],
'body' => [new RequiredHtmlOptions(new Required())],
'name' => [new RequiredHtmlOptions(Required::rule())],
'email' => [new RequiredHtmlOptions(Required::rule()), new EmailHtmlOptions(Email::rule())],
'subject' => [new RequiredHtmlOptions(Required::rule())],
'body' => [new RequiredHtmlOptions(Required::rule())],
];
}
}