Skip to content

Commit

Permalink
explicitly mark argument $alg as nullable
Browse files Browse the repository at this point in the history
Implicitly marking it as nullable is deprecated starting with PHP 8.4.
  • Loading branch information
xabbuh committed Jul 4, 2024
1 parent f65c829 commit 1c92b75
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 1c92b75

Please sign in to comment.