summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-01-13 15:11:16 +0100
committerGitHub <noreply@github.com>2018-01-13 15:11:16 +0100
commit60f38d37fe5ca505258510adc1e106da54426510 (patch)
tree8eec0f6c9104361a9e82902270dedc767cf68453 /lib/private
parent1faef0c459a51a025f73f7eee46e5607ee6eedf5 (diff)
parent8d1dd1945fa6f5f382224da6bbd333ded8f2a31f (diff)
downloadnextcloud-server-60f38d37fe5ca505258510adc1e106da54426510.tar.gz
nextcloud-server-60f38d37fe5ca505258510adc1e106da54426510.zip
Merge pull request #7825 from nextcloud/add-type-hinting-for-ICrypto-decrypt
Adds type hinting for scalar types in ICrypto->decrypt
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Security/Crypto.php2
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');
}