mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 12:33:49 +00:00
Apply rector rules: symfony up to 54
This commit is contained in:
@@ -23,9 +23,8 @@ use Symfony\Component\Validator\Constraints as Assert;
|
||||
* )
|
||||
*
|
||||
* @ORM\Entity
|
||||
*
|
||||
* @UniqueEntity(fields={"kind"})
|
||||
*/
|
||||
#[UniqueEntity(fields: ['kind'])]
|
||||
class ChargeKind
|
||||
{
|
||||
/**
|
||||
@@ -44,11 +43,9 @@ class ChargeKind
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=255, options={"default": ""}, nullable=false)
|
||||
*
|
||||
* @Assert\Regex(pattern="/^[a-z0-9\-_]{1,}$/", message="budget.admin.form.kind.only_alphanumeric")
|
||||
*
|
||||
* @Assert\Length(min=3)
|
||||
*/
|
||||
#[Assert\Regex(pattern: '/^[a-z0-9\-_]{1,}$/', message: 'budget.admin.form.kind.only_alphanumeric')]
|
||||
#[Assert\Length(min: 3)]
|
||||
private string $kind = '';
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user