summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Ferrara <me@ircmaxell.com>2012-09-14 07:18:54 -0700
committerAnthony Ferrara <me@ircmaxell.com>2012-09-14 07:18:54 -0700
commite8dbf044646e155ccf3d864379e5be1bde7b3a7a (patch)
tree7b38b16edec618058874e9977e3a64c1dd32de67
parent34a3428866feb0b47dcaddbd59c389fdcae36d10 (diff)
parenta7d80bde530657d634ff79f1b5628dd81248c567 (diff)
downloadpassword_compat-e8dbf044646e155ccf3d864379e5be1bde7b3a7a.zip
password_compat-e8dbf044646e155ccf3d864379e5be1bde7b3a7a.tar.gz
password_compat-e8dbf044646e155ccf3d864379e5be1bde7b3a7a.tar.bz2
Merge pull request #5 from nicolas-grekas/typo-n-hint
fix typo and missing type hint
-rw-r--r--lib/password.php4
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);