From 7c1cf77e5008890f143f00e0b7a931ef7d7a77fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Fri, 13 Jan 2023 03:16:05 +0100 Subject: [PATCH] Set mail as optional --- Entity/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Entity/User.php b/Entity/User.php index 8103ea6..7d274f9 100644 --- a/Entity/User.php +++ b/Entity/User.php @@ -83,7 +83,7 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface { * * @param ?string $mail The user mail */ - public function __construct(?string $mail) { + public function __construct(?string $mail = null) { //With mail if ($mail !== null && !empty($mail)) { $this->mail = $mail; -- 2.41.1