From: Raphaƫl Gertz Date: Fri, 13 Jan 2023 02:16:05 +0000 (+0100) Subject: Set mail as optional X-Git-Tag: 0.2.2 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/7c1cf77e5008890f143f00e0b7a931ef7d7a77fb Set mail as optional --- 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;