diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-12 16:30:35 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-13 00:06:03 +0100 |
commit | ca28df6fcc633a1e6a93bd2e19714e64899cd134 (patch) | |
tree | 6d39df644ad118779232570f87262dbdea154226 /lib/private/Security | |
parent | 16f4d71efd257e66550d61013e39ecf96c10fa0f (diff) | |
download | nextcloud-server-ca28df6fcc633a1e6a93bd2e19714e64899cd134.tar.gz nextcloud-server-ca28df6fcc633a1e6a93bd2e19714e64899cd134.zip |
Adds type hinting for scalar types in ICrypto->decrypt
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Security')
-rw-r--r-- | lib/private/Security/Crypto.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Security/Crypto.php b/lib/private/Security/Crypto.php index 1dd680ea13f..d2be1484279 100644 --- a/lib/private/Security/Crypto.php +++ b/lib/private/Security/Crypto.php @@ -108,7 +108,7 @@ class Crypto implements ICrypto { * @return string plaintext * @throws \Exception If the HMAC does not match */ - public function decrypt($authenticatedCiphertext, $password = '') { + public function decrypt(string $authenticatedCiphertext, string $password = ''): string { if($password === '') { $password = $this->config->getSystemValue('secret'); } |