浏览代码

fix ContactRequest::name type

olinox14 1 年之前
父节点
当前提交
bb54623795
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/ApiResource/ContactRequest.php

+ 1 - 1
src/ApiResource/ContactRequest.php

@@ -23,7 +23,7 @@ class ContactRequest
     )]
     protected string $email;
 
-    protected ?string $name = null;
+    protected string|null $name = null;
 
     #[Assert\Length(
         min: 10,