Преглед изворни кода

fix contact request name default value

olinox14 пре 1 година
родитељ
комит
31655b3145
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/ApiResource/ContactRequest.php

+ 2 - 2
src/ApiResource/ContactRequest.php

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