fix: accessing uninitialised property email

This commit is contained in:
grandeljay 2023-09-25 12:16:31 +02:00
parent b75ef54a51
commit cd1070cd8d

View file

@ -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