From d68ec5a333d64ff1b0f9766ec89715de4e7506a5 Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Sun, 23 Jul 2023 13:33:06 +0300 Subject: [PATCH] validation type removed from PasteFromData --- src/DTO/PasteFormData.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/DTO/PasteFormData.php b/src/DTO/PasteFormData.php index 52e0a99..3e77db3 100644 --- a/src/DTO/PasteFormData.php +++ b/src/DTO/PasteFormData.php @@ -11,14 +11,12 @@ class PasteFormData { #[Assert\NotBlank] public string $text; - #[Assert\Type(\boolean::class)] public bool $private; public ?string $language = null; public ?string $description = null; public ?string $filename = null; #[Assert\NotBlank] public string $author = 'anonymous'; - #[Assert\Type(\DateTimeImmutable::class)] public ?\DateTimeImmutable $expirationDate; public string $ip;