Fix cs after php-cs-fixer upgrade, fix phpstan and rector errors

This commit is contained in:
2024-09-05 18:00:37 +02:00
parent e29e1db6ed
commit e8f09b507f
5 changed files with 39 additions and 26 deletions

View File

@@ -26,21 +26,13 @@ class EntityWorkflowStepHold implements TrackCreationInterface
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::INTEGER)]
private ?int $id;
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: EntityWorkflowStep::class)]
#[ORM\JoinColumn(nullable: false)]
private EntityWorkflowStep $step;
#[ORM\ManyToOne(targetEntity: User::class)]
#[ORM\JoinColumn(nullable: false)]
private User $byUser;
public function __construct(EntityWorkflowStep $step, User $byUser)
{
$this->step = $step;
$this->byUser = $byUser;
}
public function __construct(#[ORM\ManyToOne(targetEntity: EntityWorkflowStep::class)]
#[ORM\JoinColumn(nullable: false)]
private EntityWorkflowStep $step, #[ORM\ManyToOne(targetEntity: User::class)]
#[ORM\JoinColumn(nullable: false)]
private User $byUser) {}
public function getId(): ?int
{