X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/672b4fcfd63c56a8804765103d17e2bf271af746..7c1cf77e5008890f143f00e0b7a931ef7d7a77fb:/Entity/User.php 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;