summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorwn_ <[email protected]>2021-11-14 22:44:48 +0000
committerwn_ <[email protected]>2021-11-14 22:44:48 +0000
commit8943604aad6d01865e824520130733682f4088ab (patch)
tree3f6b519aedcf182063b67b8a459c64f70813c719 /classes
parent324d926eb46f049b2a03743fc445ccceabd4dfb9 (diff)
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.
Diffstat (limited to 'classes')
-rw-r--r--classes/userhelper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/userhelper.php b/classes/userhelper.php
index 0217a8927..90d073d55 100644
--- a/classes/userhelper.php
+++ b/classes/userhelper.php
@@ -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.
*/