Skip to content

Commit

Permalink
Merge pull request #178 from xabbuh/explicit-nullables
Browse files Browse the repository at this point in the history
explicitly mark argument $alg as nullable
  • Loading branch information
paragonie-security authored Jul 10, 2024
2 parents f65c829 + 1c92b75 commit fcdcb11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -1863,7 +1863,7 @@ public static function crypto_pwhash(
string $salt,
int $opslimit,
int $memlimit,
int $alg = null
?int $alg = null
): string {
if (self::useNewSodiumAPI()) {
if (!is_null($alg)) {
Expand Down

0 comments on commit fcdcb11

Please sign in to comment.