Change the param type for UserHelper::hash_password() $algo to appease PHPStan.

PHPStan was complaining in 'plugins/auth_internal/init.php' due to UserHelper::hash_password() being passed a string, rather than a UserHelper::HASH_ALGO_* constant.  Just switching the param to string for now.
This commit is contained in:
wn_ 2021-11-14 22:44:48 +00:00
parent 324d926eb4
commit 8943604aad
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ class UserHelper {
}
/**
* @param UserHelper::HASH_ALGO_* $algo
* @param string $algo should be one of UserHelper::HASH_ALGO_*
*
* @return false|string False if the password couldn't be hashed, otherwise the hash string.
*/