From 57e8be9ab90722e28f87149eb547a693486ace50 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Dadashi Date: Thu, 3 Oct 2024 20:35:43 +0330 Subject: [PATCH] refactor: allow `null` for `$key` property to handle buffer cleanup in SodiumHandler --- system/Encryption/Handlers/SodiumHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Encryption/Handlers/SodiumHandler.php b/system/Encryption/Handlers/SodiumHandler.php index b6c74da76581..c74f2a5f0a48 100644 --- a/system/Encryption/Handlers/SodiumHandler.php +++ b/system/Encryption/Handlers/SodiumHandler.php @@ -26,7 +26,7 @@ class SodiumHandler extends BaseHandler /** * Starter key * - * @var string + * @var string|null Null is used for buffer cleanup. */ protected $key = '';