Explorar o código

fix contact request name default value

olinox14 hai 1 ano
pai
achega
31655b3145
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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',