Skip to content

Commit ea3f1b0

Browse files
authored
Merge pull request #11 from maximehuran/feature/fix-nullable
2 parents 491d744 + c3b7537 commit ea3f1b0

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/Entity/Block.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ class Block implements BlockInterface
3030

3131
protected ?int $id = null;
3232

33-
/**
34-
* @var string|null
35-
*/
36-
protected $code;
33+
protected ?string $code = null;
3734

3835
/**
3936
* @var DateTimeInterface|null

src/Entity/BlockTranslation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ class BlockTranslation extends AbstractTranslation implements BlockTranslationIn
1717
{
1818
protected ?int $id = null;
1919

20-
protected ?string $name;
20+
protected ?string $name = null;
2121

22-
protected ?string $content;
22+
protected ?string $content = null;
2323

2424
public function getId(): ?int
2525
{

0 commit comments

Comments
 (0)