Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-11-26 10:08:10 +0300
committerGitHub <noreply@github.com>2019-11-26 10:08:10 +0300
commit0fab27f459d3276a2559cdee5693bfec8c2cf1c9 (patch)
tree1b9effb3d3184da4da347bbee89969f50c5f6876 /lib/public
parent123c4aa4e01583d9d3f8db6d46fc28f2a6fb76b8 (diff)
parent128a460d7bf3be01aa2d103c6b648d96e4d99a7b (diff)
Merge pull request #18108 from nextcloud/refactor/strict-credential-store
Add return type hint to credential store and make it strict
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Authentication/LoginCredentials/IStore.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/public/Authentication/LoginCredentials/IStore.php b/lib/public/Authentication/LoginCredentials/IStore.php
index 5306eb6d6e9..054e6d85646 100644
--- a/lib/public/Authentication/LoginCredentials/IStore.php
+++ b/lib/public/Authentication/LoginCredentials/IStore.php
@@ -1,4 +1,5 @@
-<?php
+<?php declare(strict_types=1);
+
/**
* @copyright 2016 Christoph Wurst <christoph@winzerhof-wurst.at>
*
@@ -29,7 +30,7 @@ use OCP\Authentication\Exceptions\CredentialsUnavailableException;
* @since 12
*/
interface IStore {
-
+
/**
* Get login credentials of the currently logged in user
*
@@ -38,6 +39,6 @@ interface IStore {
* @throws CredentialsUnavailableException
* @return ICredentials the login credentials of the current user
*/
- public function getLoginCredentials();
-
+ public function getLoginCredentials(): ICredentials;
+
}