|
|
@@ -23,12 +23,7 @@ class ContactRequest
|
|
|
)]
|
|
|
protected string $email;
|
|
|
|
|
|
- #[Assert\Length(
|
|
|
- min: 2,
|
|
|
- minMessage: 'Name must be at least {{ limit }} characters long',
|
|
|
- )]
|
|
|
- protected string $name;
|
|
|
-
|
|
|
+ protected ?string $name;
|
|
|
#[Assert\Length(
|
|
|
min: 10,
|
|
|
minMessage: 'Message must be at least {{ limit }} characters long',
|