fix: accessing uninitialised property email
This commit is contained in:
parent
b75ef54a51
commit
cd1070cd8d
1 changed files with 1 additions and 1 deletions
|
@ -499,7 +499,7 @@ class User
|
||||||
|
|
||||||
public function getEmail(): string
|
public function getEmail(): string
|
||||||
{
|
{
|
||||||
return $this->email;
|
return $this->email ?? '';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setEmail(string $email): void
|
public function setEmail(string $email): void
|
||||||
|
|
Loading…
Reference in a new issue