Rector: apply rules for doctrine code quality

This commit is contained in:
2023-08-31 10:35:52 +02:00
parent bc9b7b1776
commit e4e52234ad
32 changed files with 74 additions and 92 deletions

View File

@@ -35,7 +35,7 @@ class CommentEmbeddable
* @var int
* @ORM\Column(type="integer", nullable=true)
*/
private $userId;
private ?int $userId = null;
public function getComment(): ?string
{

View File

@@ -47,14 +47,14 @@ class PermissionsGroup
* @ORM\Column(name="id", type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
private ?int $id = null;
/**
* @var string
*
* @ORM\Column(type="string", length=255)
* @ORM\Column(type="string", length=255, nullable=false, options={"default": ""})
*/
private $name;
private string $name = '';
/**
* @var Collection<RoleScope>

View File

@@ -65,7 +65,7 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
* @ORM\Column(type="string", length=100)
* @groups({"write", "read"})
*/
private $code;
private ?string $code = null;
/**
*
@@ -87,7 +87,7 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
* @ORM\GeneratedValue(strategy="AUTO")
* @groups({"write", "read"})
*/
private $id;
private ?int $id = null;
/**
* @var string
@@ -95,7 +95,7 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
* @ORM\Column(type="string", length=255, name="label")
* @groups({"write", "read"})
*/
private $name;
private ?string $name = null;
/**
*