minor #33257 [Security/Core] UserInterface::getPassword() can return null (nicolas-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[Security/Core] UserInterface::getPassword() can return null

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Our very own `User` class can return null already.

Commits
-------

00d7f8cde7 [Security/Core] UserInterface::getPassword() can return null
This commit is contained in:
Nicolas Grekas 2019-08-20 15:35:21 +02:00
commit 727d431bf2

View File

@ -55,7 +55,7 @@ interface UserInterface
* This should be the encoded password. On authentication, a plain-text
* password will be salted, encoded, and then compared to this value.
*
* @return string The password
* @return string|null The encoded password if any
*/
public function getPassword();