Skip to content

Commit 35ebee9

Browse files
committed
PHP CS Fixer修正
1 parent c81cccf commit 35ebee9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Entity/MailMagazineTemplate.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ public function __toString(): string
3333
private ?int $id = null;
3434

3535
#[ORM\Column(name: 'subject', type: Types::STRING, length: 255)]
36-
private ?string $subject = null;
36+
private string $subject = '';
3737

3838
#[ORM\Column(name: 'body', type: Types::TEXT)]
39-
private ?string $body = null;
39+
private string $body = '';
4040

4141
#[ORM\Column(name: 'html_body', type: Types::TEXT, nullable: true)]
4242
private ?string $html_body = null;
@@ -78,7 +78,7 @@ public function getId(): ?int
7878
*/
7979
public function getSubject(): string
8080
{
81-
return $this->subject ?? '';
81+
return $this->subject;
8282
}
8383

8484
/**
@@ -164,7 +164,7 @@ public function setBody(string $body): self
164164
*/
165165
public function getBody(): string
166166
{
167-
return $this->body ?? '';
167+
return $this->body;
168168
}
169169

170170
/**

0 commit comments

Comments
 (0)