Browse Source

fix contact request name default value

olinox14 1 year ago
parent
commit
31655b3145
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/ApiResource/ContactRequest.php

+ 2 - 2
src/ApiResource/ContactRequest.php

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