Skip to content

Commit be4d0fd

Browse files
committed
chore: DTO cleanup, make properties nullable
1 parent 2a474de commit be4d0fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Dto/RegisterFormDto.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@
1313
final class RegisterFormDto
1414
{
1515
#[Assert\NotBlank]
16-
public string $name;
16+
public ?string $name = null;
1717

1818
#[Assert\NotBlank]
1919
#[Assert\Email]
20-
public string $email;
20+
public ?string $email = null;
2121

2222
#[Assert\NotNull]
2323
#[Assert\Country]
24-
public string $country;
24+
public ?string $country = null;
2525

2626
#[Assert\NotNull]
2727
#[Assert\Currency]
28-
public string $currency;
28+
public ?string $currency = null;
2929

3030
#[Assert\NotNull]
3131
public ?\DateTimeImmutable $birthday = null;
3232

3333
#[Assert\NotNull]
34-
public Fruit $fruit;
34+
public ?Fruit $fruit = null;
3535
}

0 commit comments

Comments
 (0)