diff options
| author | wn_ <invalid@email.com> | 2024-11-23 17:43:24 +0000 |
|---|---|---|
| committer | wn_ <invalid@email.com> | 2024-11-23 17:43:24 +0000 |
| commit | abcd0e8ba205aac8bd9006e99d783afc999af0af (patch) | |
| tree | 8635fcd5b239f18db5ff831c7ef21a290a8ac6d8 /classes/UserHelper.php | |
| parent | d4636716fb6e1879098823c2f037db5d8d3f24a0 (diff) | |
Use native union types in most places.
Diffstat (limited to 'classes/UserHelper.php')
| -rw-r--r-- | classes/UserHelper.php | 4 |
1 files changed, 1 insertions, 3 deletions
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) { |