password_hash can return null

This commit is contained in:
Nat Zimmermann 2019-09-12 19:26:49 +01:00 committed by GitHub
parent 4c8579a5a8
commit 4cf0ab5b5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ function password_get_info ($hash) {}
* The salt option has been deprecated as of PHP 7.0.0. It is now
* preferred to simply use the salt that is generated by default.
* </p>
* @return string|false Returns the hashed password, or FALSE on failure.
* @return string|false|null Returns the hashed password, or FALSE on failure, or null if the algorithm is invalid
* @since 5.5.0
*/
function password_hash ($password, $algo, $options = null) {}