Merge pull request #658 from ntzm/patch-1

password_hash can return null
This commit is contained in:
Svetlana Zemlyanskaya 2019-09-16 19:33:41 +02:00 committed by GitHub
commit 41b5f22ab8
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) {}