From b2de9a6f9e83d86250c113bfe9f4e7c0f18d9b6a Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 13 Oct 2020 10:51:22 +0200 Subject: [PATCH] The encryption decrypt position can be int or string The public API said string, internally we treated it as int. In reality both are used. Let's reflect that in the documented argument type. Signed-off-by: Christoph Wurst --- apps/encryption/lib/Crypto/Crypt.php | 2 +- apps/encryption/lib/Crypto/Encryption.php | 2 +- lib/public/Encryption/IEncryptionModule.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/encryption/lib/Crypto/Crypt.php b/apps/encryption/lib/Crypto/Crypt.php index 6559deb940..57aecf9563 100644 --- a/apps/encryption/lib/Crypto/Crypt.php +++ b/apps/encryption/lib/Crypto/Crypt.php @@ -459,7 +459,7 @@ class Crypt { * @param string $passPhrase * @param string $cipher * @param int $version - * @param int $position + * @param int|string $position * @return string * @throws DecryptionFailedException */ diff --git a/apps/encryption/lib/Crypto/Encryption.php b/apps/encryption/lib/Crypto/Encryption.php index 263e9a15df..6fa388e887 100644 --- a/apps/encryption/lib/Crypto/Encryption.php +++ b/apps/encryption/lib/Crypto/Encryption.php @@ -360,7 +360,7 @@ class Encryption implements IEncryptionModule { * decrypt data * * @param string $data you want to decrypt - * @param int $position + * @param int|string $position * @return string decrypted data * @throws DecryptionFailedException */ diff --git a/lib/public/Encryption/IEncryptionModule.php b/lib/public/Encryption/IEncryptionModule.php index 7d306d3c2f..050cdf2555 100644 --- a/lib/public/Encryption/IEncryptionModule.php +++ b/lib/public/Encryption/IEncryptionModule.php @@ -102,7 +102,7 @@ interface IEncryptionModule { * decrypt data * * @param string $data you want to decrypt - * @param string $position position of the block we want to decrypt + * @param int|string $position position of the block we want to decrypt * * @return mixed decrypted data *