Rapsys Git
/
userbundle
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Set mail as optional
[userbundle]
/
Entity
/
User.php
diff --git
a/Entity/User.php
b/Entity/User.php
index 8103ea6bcd111d26ad5592eb046022f5ce3ed89e..7d274f9f48ecf8b171a848bbd1d9a41aec5f0732 100644
(file)
--- 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;