mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 15:43:51 +00:00
Rector: apply rules for doctrine code quality
This commit is contained in:
@@ -35,7 +35,7 @@ class CommentEmbeddable
|
||||
* @var int
|
||||
* @ORM\Column(type="integer", nullable=true)
|
||||
*/
|
||||
private $userId;
|
||||
private ?int $userId = null;
|
||||
|
||||
public function getComment(): ?string
|
||||
{
|
||||
|
@@ -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>
|
||||
|
@@ -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;
|
||||
|
||||
/**
|
||||
*
|
||||
|
Reference in New Issue
Block a user