diff --git a/lib/SimpleSAML/Utils/Crypto.php b/lib/SimpleSAML/Utils/Crypto.php index b118b6ee200534148f29c9ebaa62f0eebf692b2f..9f104139c88f28413bfd94d04cf303519dcd8696 100644 --- a/lib/SimpleSAML/Utils/Crypto.php +++ b/lib/SimpleSAML/Utils/Crypto.php @@ -317,7 +317,7 @@ class Crypto * This function hashes a password with a given algorithm. * * @param string $password The password to hash. - * @param int $algorithm The algorithm to use. Defaults to the system default + * @param mixed $algorithm The algorithm to use. Defaults to the system default * * @return string The hashed password. * @throws \InvalidArgumentException If the input parameter is not a string. @@ -328,7 +328,7 @@ class Crypto * @author Dyonisius Visser, TERENA <visser@terena.org> * @author Jaime Perez, UNINETT AS <jaime.perez@uninett.no> */ - public static function pwHash(string $password, int $algorithm = PASSWORD_DEFAULT): string + public static function pwHash(string $password, $algorithm = PASSWORD_DEFAULT): string { if (!is_string($hash = password_hash($password, $algorithm))) { throw new InvalidArgumentException('Error while hashing password.');