diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-03-11 14:17:29 +0100 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-03-11 14:17:29 +0100 |
commit | 8d7380a15de1ebeaced9bada661c5f137380a674 (patch) | |
tree | 5df8d78184e82faddc48367ccf58ef97ef4b6e93 /lib | |
parent | 3a0b934f842b01973f7d56f7e46a618a28680cd3 (diff) | |
download | nextcloud-server-8d7380a15de1ebeaced9bada661c5f137380a674.tar.gz nextcloud-server-8d7380a15de1ebeaced9bada661c5f137380a674.zip |
Fix psalm issue about userCounts
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Support/Subscription/Registry.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Support/Subscription/Registry.php b/lib/private/Support/Subscription/Registry.php index 1298337acb2..ba3642d021c 100644 --- a/lib/private/Support/Subscription/Registry.php +++ b/lib/private/Support/Subscription/Registry.php @@ -34,6 +34,7 @@ use OCP\IGroupManager; use OCP\IServerContainer; use OCP\IUserManager; use OCP\Notification\IManager; +use OCP\User\Backend\ICountUsersBackend; use OCP\Support\Subscription\Exception\AlreadyRegisteredException; use OCP\Support\Subscription\IRegistry; use OCP\Support\Subscription\ISubscription; @@ -189,6 +190,7 @@ class Registry implements IRegistry { $backends = $this->userManager->getBackends(); foreach ($backends as $backend) { if ($backend->implementsActions(Backend::COUNT_USERS)) { + /** @var ICountUsersBackend $backend */ $backendUsers = $backend->countUsers(); if ($backendUsers !== false) { $userCount += $backendUsers; |