diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-05-18 08:43:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-18 08:43:13 +0200 |
commit | ee3dc57cbd9c9cf2f88d97a35f54ed67ab556aa7 (patch) | |
tree | 0bb2f6b2310032256a0147e2148f8930cb5775d8 /lib/public/Security/ICredentialsManager.php | |
parent | 44a638f9617aa53da9e38378b1f62923cf2d2514 (diff) | |
parent | ca7b37ce5a5c68ea4a105377754005a772c5deaa (diff) | |
download | nextcloud-server-ee3dc57cbd9c9cf2f88d97a35f54ed67ab556aa7.tar.gz nextcloud-server-ee3dc57cbd9c9cf2f88d97a35f54ed67ab556aa7.zip |
Merge pull request #26626 from J0WI/strict-security
Make Security module strict
Diffstat (limited to 'lib/public/Security/ICredentialsManager.php')
-rw-r--r-- | lib/public/Security/ICredentialsManager.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/public/Security/ICredentialsManager.php b/lib/public/Security/ICredentialsManager.php index 47c8c7dbef2..ce42905577a 100644 --- a/lib/public/Security/ICredentialsManager.php +++ b/lib/public/Security/ICredentialsManager.php @@ -1,4 +1,7 @@ <?php + +declare(strict_types=1); + /** * @copyright Copyright (c) 2016, ownCloud, Inc. * @@ -38,7 +41,7 @@ interface ICredentialsManager { * @param mixed $credentials * @since 8.2.0 */ - public function store($userId, $identifier, $credentials); + public function store(string $userId, string $identifier, $credentials): void; /** * Retrieve a set of credentials @@ -48,7 +51,7 @@ interface ICredentialsManager { * @return mixed * @since 8.2.0 */ - public function retrieve($userId, $identifier); + public function retrieve(string $userId, string $identifier); /** * Delete a set of credentials @@ -58,7 +61,7 @@ interface ICredentialsManager { * @return int rows removed * @since 8.2.0 */ - public function delete($userId, $identifier); + public function delete(string $userId, string $identifier): int; /** * Erase all credentials stored for a user @@ -67,5 +70,5 @@ interface ICredentialsManager { * @return int rows removed * @since 8.2.0 */ - public function erase($userId); + public function erase(string $userId): int; } |