From 97e8496979f6e310c8e38b8480e1828167860347 Mon Sep 17 00:00:00 2001 From: Stephan Schuler Date: Tue, 21 Nov 2023 17:20:15 +0100 Subject: [PATCH] fix: Remove scalar type hint as long as PHP 7.3 is supported --- Classes/Encryption/EncryptionService.php | 6 ++++-- Classes/Encryption/Sealed.php | 9 ++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Classes/Encryption/EncryptionService.php b/Classes/Encryption/EncryptionService.php index 4bd2e3b..3a8f3e6 100644 --- a/Classes/Encryption/EncryptionService.php +++ b/Classes/Encryption/EncryptionService.php @@ -19,9 +19,11 @@ class EncryptionService { const ALGORITHM = 'AES256'; - private string $rsaKeyFingerprint; + /** @var string */ + private $rsaKeyFingerprint; - private string $encryptionModuleUri; + /** @var string */ + private $encryptionModuleUri; private RsaWalletServiceInterface $rsaWallet; diff --git a/Classes/Encryption/Sealed.php b/Classes/Encryption/Sealed.php index 99012ab..688e3ab 100644 --- a/Classes/Encryption/Sealed.php +++ b/Classes/Encryption/Sealed.php @@ -13,11 +13,14 @@ */ final class Sealed { - private string $encryptedData; + /** @var string */ + private $encryptedData; - private string $initializationVector; + /** @var string */ + private $initializationVector; - private string $envelopeKey; + /** @var string */ + private $envelopeKey; public function __construct(string $encryptedData, string $initializationVector, string $envelopeKeys) {