From 4b33f01d397d3dd0d87eb5dd9dd6db9c67594a79 Mon Sep 17 00:00:00 2001 From: Sebastian Molenda Date: Tue, 3 Oct 2023 15:42:32 +0200 Subject: [PATCH] fix --- src/PubNub/PNConfiguration.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/PubNub/PNConfiguration.php b/src/PubNub/PNConfiguration.php index a24b0544..7b6062e5 100755 --- a/src/PubNub/PNConfiguration.php +++ b/src/PubNub/PNConfiguration.php @@ -58,6 +58,8 @@ class PNConfiguration private $usingUserId = null; + private string $cipherKey; + /** * PNConfiguration constructor. */ @@ -122,7 +124,7 @@ public function setSecretKey($secretKey) */ public function getCipherKey() { - return $this->getCrypto()->getCipherKey(); + return $this->cipherKey; } public function isAesEnabled() @@ -136,6 +138,7 @@ public function isAesEnabled() */ public function setCipherKey($cipherKey) { + $this->cipherKey = $cipherKey; if ($this->crypto == null) { $this->crypto = CryptoModule::legacyCryptor($cipherKey, $this->getUseRandomIV()); } else {