diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2021-02-15 12:07:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-15 12:07:24 +0100 |
commit | 65465b5abc680050e75cd9e7331d5add58110386 (patch) | |
tree | 9c7c6fe347eb825671ab1b2d60bbcfd8e9a84e23 /apps/dav/lib/AppInfo | |
parent | 19f1cc6dde331569ec70f38e192889eeb52b4066 (diff) | |
parent | e62790cfe2408e6fb018e9848315bb400bcb8846 (diff) | |
download | nextcloud-server-65465b5abc680050e75cd9e7331d5add58110386.tar.gz nextcloud-server-65465b5abc680050e75cd9e7331d5add58110386.zip |
Merge pull request #25636 from nextcloud/fix/psalm/closure_return_types
Add some closure return types
Diffstat (limited to 'apps/dav/lib/AppInfo')
-rw-r--r-- | apps/dav/lib/AppInfo/Application.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php index f1bf77c3285..9bc95124c22 100644 --- a/apps/dav/lib/AppInfo/Application.php +++ b/apps/dav/lib/AppInfo/Application.php @@ -143,7 +143,7 @@ class Application extends App implements IBootstrap { } }); - $birthdayListener = function ($event) use ($container) { + $birthdayListener = function ($event) use ($container): void { if ($event instanceof GenericEvent) { /** @var BirthdayService $b */ $b = $container->query(BirthdayService::class); @@ -168,7 +168,7 @@ class Application extends App implements IBootstrap { } }); - $clearPhotoCache = function ($event) use ($container) { + $clearPhotoCache = function ($event) use ($container): void { if ($event instanceof GenericEvent) { /** @var PhotoCache $p */ $p = $container->query(PhotoCache::class); @@ -240,7 +240,7 @@ class Application extends App implements IBootstrap { ); }); - $listener = function (GenericEvent $event, $eventName) use ($container) { + $listener = function (GenericEvent $event, $eventName) use ($container): void { /** @var Backend $backend */ $backend = $container->query(Backend::class); @@ -336,7 +336,7 @@ class Application extends App implements IBootstrap { } ); - $eventHandler = function () use ($container, $serverContainer) { + $eventHandler = function () use ($container, $serverContainer): void { try { /** @var UpdateCalendarResourcesRoomsBackgroundJob $job */ $job = $container->query(UpdateCalendarResourcesRoomsBackgroundJob::class); |