X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/ee48fb9286da83dd2d29c368cf0490779a4fca3d..e76a1923e813fdf1fd24115ad0f976d2df58cc6f:/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;