From abcd0e8ba205aac8bd9006e99d783afc999af0af Mon Sep 17 00:00:00 2001 From: wn_ Date: Sat, 23 Nov 2024 17:43:24 +0000 Subject: Use native union types in most places. --- classes/UserHelper.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'classes/UserHelper.php') diff --git a/classes/UserHelper.php b/classes/UserHelper.php index aa2d4ce19..21c2ab4d5 100644 --- a/classes/UserHelper.php +++ b/classes/UserHelper.php @@ -370,7 +370,6 @@ class UserHelper { /** * @param null|int $owner_uid if null, checks current user via session-specific auth module, if set works on internal database only - * @return bool * @throws PDOException * @throws Exception */ @@ -383,7 +382,7 @@ class UserHelper { * * @return false|string False if the password couldn't be hashed, otherwise the hash string. */ - static function hash_password(string $pass, string $salt, string $algo = self::HASH_ALGOS[0]) { + static function hash_password(string $pass, string $salt, string $algo = self::HASH_ALGOS[0]): false|string { $pass_hash = ""; switch ($algo) { @@ -498,7 +497,6 @@ class UserHelper { /** * @param null|int $owner_uid if null, checks current user via session-specific auth module, if set works on internal database only * @param string $password password to compare hash against - * @return bool */ static function user_has_password(?int $owner_uid, string $password) : bool { if ($owner_uid) { -- cgit v1.2.3-54-g00ecf