소스 검색

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',