diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-02-13 12:50:56 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-02-13 12:50:56 +0100 |
commit | fa42cd96dd61e342307cfc990ba5c18a0aa1f385 (patch) | |
tree | d9742b1e2634d273fb4f8001d33f83c1d3aff8f3 | |
parent | 17fffdbbcb2187c7d1d0b113bbd4ca66431a14d9 (diff) | |
download | nextcloud-server-fa42cd96dd61e342307cfc990ba5c18a0aa1f385.tar.gz nextcloud-server-fa42cd96dd61e342307cfc990ba5c18a0aa1f385.zip |
chore(user_ldap): Add psalm-suppress for deprecated emit method calls
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | apps/user_ldap/ajax/clearMappings.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/user_ldap/ajax/clearMappings.php b/apps/user_ldap/ajax/clearMappings.php index ac13d7609bf..c3b64f08a16 100644 --- a/apps/user_ldap/ajax/clearMappings.php +++ b/apps/user_ldap/ajax/clearMappings.php @@ -30,10 +30,12 @@ try { $result = $mapping->clearCb( function (string $uid) use ($dispatcher): void { $dispatcher->dispatchTyped(new BeforeUserIdUnassignedEvent($uid)); + /** @psalm-suppress UndefinedInterfaceMethod For now we have to emit, will be removed when all hooks are removed */ Server::get(IUserManager::class)->emit('\OC\User', 'preUnassignedUserId', [$uid]); }, function (string $uid) use ($dispatcher): void { $dispatcher->dispatchTyped(new UserIdUnassignedEvent($uid)); + /** @psalm-suppress UndefinedInterfaceMethod For now we have to emit, will be removed when all hooks are removed */ Server::get(IUserManager::class)->emit('\OC\User', 'postUnassignedUserId', [$uid]); } ); |