Skip to content

Commit f8be78e

Browse files
committed
Merge branch '2.0.x'
2 parents 3a10e9d + f590829 commit f8be78e

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

Model/User.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -74,24 +74,24 @@ abstract class User implements UserInterface, GroupableInterface
7474
protected $plainPassword;
7575

7676
/**
77-
* @var \DateTime
77+
* @var \DateTime|null
7878
*/
7979
protected $lastLogin;
8080

8181
/**
8282
* Random string sent to the user email address in order to verify it.
8383
*
84-
* @var string
84+
* @var string|null
8585
*/
8686
protected $confirmationToken;
8787

8888
/**
89-
* @var \DateTime
89+
* @var \DateTime|null
9090
*/
9191
protected $passwordRequestedAt;
9292

9393
/**
94-
* @var Collection
94+
* @var GroupInterface[]|Collection
9595
*/
9696
protected $groups;
9797

@@ -255,7 +255,7 @@ public function getPlainPassword()
255255
/**
256256
* Gets the last login time.
257257
*
258-
* @return \DateTime
258+
* @return \DateTime|null
259259
*/
260260
public function getLastLogin()
261261
{

Model/UserInterface.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ public function setUsernameCanonical($usernameCanonical);
5757

5858
/**
5959
* @param string|null $salt
60+
*
61+
* @return static
6062
*/
6163
public function setSalt($salt);
6264

@@ -143,14 +145,14 @@ public function setSuperAdmin($boolean);
143145
/**
144146
* Gets the confirmation token.
145147
*
146-
* @return string
148+
* @return string|null
147149
*/
148150
public function getConfirmationToken();
149151

150152
/**
151153
* Sets the confirmation token.
152154
*
153-
* @param string $confirmationToken
155+
* @param string|null $confirmationToken
154156
*
155157
* @return static
156158
*/
@@ -177,7 +179,7 @@ public function isPasswordRequestNonExpired($ttl);
177179
/**
178180
* Sets the last login time.
179181
*
180-
* @param \DateTime $time
182+
* @param \DateTime|null $time
181183
*
182184
* @return static
183185
*/

0 commit comments

Comments
 (0)