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

@@ -25,20 +25,16 @@ use Symfony\Component\Validator\Constraints as Assert;
* AbstractTask.
*
* @ORM\MappedSuperclass
*
* @Serializer\DiscriminatorMap(typeProperty="type", mapping={
* "single_task": SingleTask::class
* })
*/
#[Serializer\DiscriminatorMap(typeProperty: 'type', mapping: ['single_task' => SingleTask::class])]
abstract class AbstractTask implements HasCenterInterface, HasScopeInterface
{
/**
* @ORM\ManyToOne(
* targetEntity="\Chill\MainBundle\Entity\User"
* )
*
* @Serializer\Groups({"read"})
*/
#[Serializer\Groups(['read'])]
private ?User $assignee = null;
/**
@@ -50,55 +46,47 @@ abstract class AbstractTask implements HasCenterInterface, HasScopeInterface
/**
* @ORM\Column(name="closed", type="boolean", options={ "default": false })
*
* @Serializer\Groups({"read"})
*/
#[Serializer\Groups(['read'])]
private bool $closed = false;
/**
* @ORM\ManyToOne(targetEntity="\Chill\PersonBundle\Entity\AccompanyingPeriod")
*
* @Serializer\Groups({"read"})
*/
#[Serializer\Groups(['read'])]
private ?AccompanyingPeriod $course = null;
/**
* @ORM\Column(name="current_states", type="json", options={"jsonb"=true, "default"="[]"})
*
* @Serializer\Groups({"read"})
*/
#[Serializer\Groups(['read'])]
private array $currentStates = [];
/**
* @ORM\Column(name="description", type="text")
*
* @Serializer\Groups({"read"})
*/
#[Serializer\Groups(['read'])]
private string $description = '';
/**
* @ORM\ManyToOne(
* targetEntity="\Chill\PersonBundle\Entity\Person"
* )
*
* @Serializer\Groups({"read"})
*/
#[Serializer\Groups(['read'])]
private ?Person $person = null;
/**
* @ORM\Column(name="title", type="text")
*
* @Assert\NotBlank
*
* @Serializer\Groups({"read"})
*/
#[Assert\NotBlank]
#[Serializer\Groups(['read'])]
private string $title = '';
/**
* @ORM\Column(name="type", type="string", length=255)
*
* @Serializer\Groups({"read"})
*/
#[Serializer\Groups(['read'])]
private ?string $type = null;
public function getAssignee(): ?User