mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
Apply rector rules: symfony up to 54
This commit is contained in:
@@ -54,13 +54,9 @@ class Document implements TrackCreationInterface, TrackUpdateInterface
|
||||
* targetEntity="Chill\DocStoreBundle\Entity\StoredObject",
|
||||
* cascade={"persist"}
|
||||
* )
|
||||
*
|
||||
* @Assert\Valid
|
||||
*
|
||||
* @Assert\NotNull(
|
||||
* message="Upload a document"
|
||||
* )
|
||||
*/
|
||||
#[Assert\Valid]
|
||||
#[Assert\NotNull(message: 'Upload a document')]
|
||||
private ?StoredObject $object = null;
|
||||
|
||||
/**
|
||||
@@ -70,11 +66,8 @@ class Document implements TrackCreationInterface, TrackUpdateInterface
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="text")
|
||||
*
|
||||
* @Assert\Length(
|
||||
* min=2, max=250
|
||||
* )
|
||||
*/
|
||||
#[Assert\Length(min: 2, max: 250)]
|
||||
private string $title = '';
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user