diff options
author | Joas Schilling <coding@schilljs.com> | 2023-07-07 10:55:17 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-07-07 10:55:17 +0200 |
commit | e1d4b821116255c5e77f785ee6c80888e31649f5 (patch) | |
tree | 40df036bbe0ddfa529e54f9945417dae78573a12 /apps/dav/lib/AppInfo | |
parent | 2bf339e2a77f26c53e589acbcf39ffc2dfacfeba (diff) | |
download | nextcloud-server-e1d4b821116255c5e77f785ee6c80888e31649f5.tar.gz nextcloud-server-e1d4b821116255c5e77f785ee6c80888e31649f5.zip |
fix(CI): Fix type confusion with Psalm
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib/AppInfo')
-rw-r--r-- | apps/dav/lib/AppInfo/Application.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php index 620f8d7e126..4ed68e68840 100644 --- a/apps/dav/lib/AppInfo/Application.php +++ b/apps/dav/lib/AppInfo/Application.php @@ -225,10 +225,12 @@ class Application extends App implements IBootstrap { }); $dispatcher->addListener('OC\AccountManager::userUpdated', function ($event) use ($container) { - $user = $event->getSubject(); - /** @var SyncService $syncService */ - $syncService = $container->query(SyncService::class); - $syncService->updateUser($user); + if ($event instanceof GenericEvent) { + $user = $event->getSubject(); + /** @var SyncService $syncService */ + $syncService = $container->query(SyncService::class); + $syncService->updateUser($user); + } }); |