From 8943604aad6d01865e824520130733682f4088ab Mon Sep 17 00:00:00 2001 From: wn_ Date: Sun, 14 Nov 2021 22:44:48 +0000 Subject: [PATCH] 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. --- classes/userhelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */