فهرست منبع

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 $name = '';
-    
+    protected ?string $name = null;
+
     #[Assert\Length(
         min: 10,
         minMessage: 'Message must be at least {{ limit }} characters long',