We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a474de commit be4d0fdCopy full SHA for be4d0fd
src/Dto/RegisterFormDto.php
@@ -13,23 +13,23 @@
13
final class RegisterFormDto
14
{
15
#[Assert\NotBlank]
16
- public string $name;
+ public ?string $name = null;
17
18
19
#[Assert\Email]
20
- public string $email;
+ public ?string $email = null;
21
22
#[Assert\NotNull]
23
#[Assert\Country]
24
- public string $country;
+ public ?string $country = null;
25
26
27
#[Assert\Currency]
28
- public string $currency;
+ public ?string $currency = null;
29
30
31
public ?\DateTimeImmutable $birthday = null;
32
33
34
- public Fruit $fruit;
+ public ?Fruit $fruit = null;
35
}
0 commit comments