summaryrefslogtreecommitdiffstats
path: root/lib/private/Security/IdentityProof/Key.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-05 19:33:16 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-03-05 19:33:16 +0100
commitd8332d43f8751bea380da1900ddb47e49754fdbc (patch)
treecceb26bdbf511a1a832bed4850051eb7d0820f1a /lib/private/Security/IdentityProof/Key.php
parent545737340711d1622ee18474b1f56feb76f96f3d (diff)
downloadnextcloud-server-d8332d43f8751bea380da1900ddb47e49754fdbc.tar.gz
nextcloud-server-d8332d43f8751bea380da1900ddb47e49754fdbc.zip
Make \OC\Security\IdentityProof strict
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Security/IdentityProof/Key.php')
-rw-r--r--lib/private/Security/IdentityProof/Key.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/Security/IdentityProof/Key.php b/lib/private/Security/IdentityProof/Key.php
index b01a5c66bb8..4f79dee15db 100644
--- a/lib/private/Security/IdentityProof/Key.php
+++ b/lib/private/Security/IdentityProof/Key.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* @copyright Copyright (c) 2016 Lukas Reschke <lukas@statuscode.ch>
*
@@ -33,16 +34,16 @@ class Key {
* @param string $publicKey
* @param string $privateKey
*/
- public function __construct($publicKey, $privateKey) {
+ public function __construct(string $publicKey, string $privateKey) {
$this->publicKey = $publicKey;
$this->privateKey = $privateKey;
}
- public function getPrivate() {
+ public function getPrivate(): string {
return $this->privateKey;
}
- public function getPublic() {
+ public function getPublic(): string {
return $this->publicKey;
}
}