mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
Fix cs after php-cs-fixer upgrade, fix phpstan and rector errors
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user