diff options
author | Nicolas Grekas <nicolas.grekas@gmail.com> | 2012-09-14 12:37:39 +0200 |
---|---|---|
committer | Nicolas Grekas <nicolas.grekas@gmail.com> | 2012-09-14 12:37:39 +0200 |
commit | a7d80bde530657d634ff79f1b5628dd81248c567 (patch) | |
tree | 7b38b16edec618058874e9977e3a64c1dd32de67 | |
parent | 34a3428866feb0b47dcaddbd59c389fdcae36d10 (diff) | |
download | password_compat-a7d80bde530657d634ff79f1b5628dd81248c567.zip password_compat-a7d80bde530657d634ff79f1b5628dd81248c567.tar.gz password_compat-a7d80bde530657d634ff79f1b5628dd81248c567.tar.bz2 |
fix typo and missing type hint
-rw-r--r-- | lib/password.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/password.php b/lib/password.php index 2d913a6..25dcd9a 100644 --- a/lib/password.php +++ b/lib/password.php @@ -20,7 +20,7 @@ if (!function_exists('password_hash')) { * * @returns string|false The hashed password, or false on error. */ - function password_hash($password, $algo, $options = array()) { + function password_hash($password, $algo, array $options = array()) { if (!function_exists('crypt')) { trigger_error("Crypt must be loaded for password_hash to function", E_USER_WARNING); return null; @@ -167,7 +167,7 @@ if (!function_exists('password_verify')) { */ function password_verify($password, $hash) { if (!function_exists('crypt')) { - trigger_error("Crypt must be loaded for password_create to function", E_USER_WARNING); + trigger_error("Crypt must be loaded for password_verify to function", E_USER_WARNING); return false; } $ret = crypt($password, $hash); |