X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/ee48fb9286da83dd2d29c368cf0490779a4fca3d..7c1cf77e5008890f143f00e0b7a931ef7d7a77fb:/Entity/User.php?ds=inline 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;