From 8d7380a15de1ebeaced9bada661c5f137380a674 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Fri, 11 Mar 2022 14:17:29 +0100 Subject: Fix psalm issue about userCounts Signed-off-by: Carl Schwan --- lib/private/Support/Subscription/Registry.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/private/Support') 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; -- cgit v1.2.3