diff options
author | yemkareems <yemkareems@gmail.com> | 2024-10-28 15:04:11 +0530 |
---|---|---|
committer | yemkareems <yemkareems@gmail.com> | 2024-10-28 15:04:11 +0530 |
commit | a74ef8237da49b75a930ca335713eef0347c9d51 (patch) | |
tree | 8f406854b99fd06b3f4a9568e72b151c1eaca529 /lib | |
parent | 505dfd65fd3520aaf95add30ef680723ddcd4dbd (diff) | |
download | nextcloud-server-a74ef8237da49b75a930ca335713eef0347c9d51.tar.gz nextcloud-server-a74ef8237da49b75a930ca335713eef0347c9d51.zip |
fix: crypto type made not nullable and tests run using ICrypto
Signed-off-by: yemkareems <yemkareems@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Authentication/LoginCredentials/Store.php | 6 | ||||
-rw-r--r-- | lib/private/Server.php | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Authentication/LoginCredentials/Store.php b/lib/private/Authentication/LoginCredentials/Store.php index 8e31d7e23ca..210d1cc6463 100644 --- a/lib/private/Authentication/LoginCredentials/Store.php +++ b/lib/private/Authentication/LoginCredentials/Store.php @@ -30,13 +30,13 @@ class Store implements IStore { /** @var IProvider|null */ private $tokenProvider; - /** @var Crypto|null */ + /** @var Crypto */ private $crypto; public function __construct(ISession $session, LoggerInterface $logger, - ?IProvider $tokenProvider = null, - ?Crypto $crypto = null) { + Crypto $crypto, + ?IProvider $tokenProvider = null) { $this->session = $session; $this->logger = $logger; $this->tokenProvider = $tokenProvider; diff --git a/lib/private/Server.php b/lib/private/Server.php index be3f0bb9823..fb8c0aa7eda 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -452,7 +452,7 @@ class Server extends ServerContainer implements IServerContainer { } $logger = $c->get(LoggerInterface::class); $crypto = $c->get(Crypto::class); - return new Store($session, $logger, $tokenProvider, $crypto); + return new Store($session, $logger, $crypto, $tokenProvider); }); $this->registerAlias(IStore::class, Store::class); $this->registerAlias(IProvider::class, Authentication\Token\Manager::class); |