From 1c92b7543670f320e42d106c2fd77596a93fe7f3 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 4 Jul 2024 11:47:16 +0200 Subject: [PATCH] explicitly mark argument $alg as nullable Implicitly marking it as nullable is deprecated starting with PHP 8.4. --- src/Compat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compat.php b/src/Compat.php index 6c020a98..5bbf2a35 100644 --- a/src/Compat.php +++ b/src/Compat.php @@ -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)) {