Apply rector rules: symfony up to 54

This commit is contained in:
2024-04-04 23:30:25 +02:00
parent 1ee3b9e2f0
commit 579bd829f8
204 changed files with 974 additions and 2346 deletions

View File

@@ -28,27 +28,22 @@ class DashboardConfigItem
* @ORM\GeneratedValue
*
* @ORM\Column(type="integer")
*
* @Serializer\Groups({"dashboardConfigItem:read", "read"})
*/
#[Serializer\Groups(['dashboardConfigItem:read', 'read'])]
private ?int $id = null;
/**
* @ORM\Column(type="string")
*
* @Serializer\Groups({"dashboardConfigItem:read", "read"})
*
* @Assert\NotNull
*/
#[Serializer\Groups(['dashboardConfigItem:read', 'read'])]
#[Assert\NotNull]
private string $type = '';
/**
* @ORM\Column(type="string")
*
* @Serializer\Groups({"dashboardConfigItem:read", "read"})
*
* @Assert\NotNull
*/
#[Serializer\Groups(['dashboardConfigItem:read', 'read'])]
#[Assert\NotNull]
private string $position = '';
/**
@@ -58,9 +53,8 @@ class DashboardConfigItem
/**
* @ORM\Column(type="json", options={"default": "[]", "jsonb": true})
*
* @Serializer\Groups({"dashboardConfigItem:read"})
*/
#[Serializer\Groups(['dashboardConfigItem:read'])]
private array $metadata = [];
public function getId(): ?int