Skip to content

Commit

Permalink
silence psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGoodwin committed May 21, 2021
1 parent 93537eb commit cfb8554
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/UserAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ private function mkpass(string $passwd) : string
} elseif ($mode == "sha1") {
$ret = sha1($passwd);
} elseif ($mode == "argon2i") {
/**
* @psalm-suppress InvalidScalarArgument
*/
$ret = password_hash($passwd, PASSWORD_ARGON2I);
} else {
//error
Expand Down

0 comments on commit cfb8554

Please sign in to comment.