validation type removed from PasteFromData
This commit is contained in:
parent
8bceb97550
commit
d68ec5a333
|
@ -11,14 +11,12 @@ class PasteFormData
|
||||||
{
|
{
|
||||||
#[Assert\NotBlank]
|
#[Assert\NotBlank]
|
||||||
public string $text;
|
public string $text;
|
||||||
#[Assert\Type(\boolean::class)]
|
|
||||||
public bool $private;
|
public bool $private;
|
||||||
public ?string $language = null;
|
public ?string $language = null;
|
||||||
public ?string $description = null;
|
public ?string $description = null;
|
||||||
public ?string $filename = null;
|
public ?string $filename = null;
|
||||||
#[Assert\NotBlank]
|
#[Assert\NotBlank]
|
||||||
public string $author = 'anonymous';
|
public string $author = 'anonymous';
|
||||||
#[Assert\Type(\DateTimeImmutable::class)]
|
|
||||||
public ?\DateTimeImmutable $expirationDate;
|
public ?\DateTimeImmutable $expirationDate;
|
||||||
public string $ip;
|
public string $ip;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue