summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-08-23 14:57:00 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-08-25 16:15:49 +0200
commit5cfdf9b9eefe458cf3ef663eb20da796ec13325e (patch)
tree7b1ff1dcd6daaba145608fb83b91933c316c4eda /lib
parente5731b3c30f5490f40328809582a738c68ed8686 (diff)
downloadnextcloud-server-5cfdf9b9eefe458cf3ef663eb20da796ec13325e.tar.gz
nextcloud-server-5cfdf9b9eefe458cf3ef663eb20da796ec13325e.zip
Add void return types to callables
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Updater.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php
index 889b54eec51..49909fc4562 100644
--- a/lib/private/Updater.php
+++ b/lib/private/Updater.php
@@ -447,12 +447,12 @@ class Updater extends BasicEmitter {
$dispatcher = \OC::$server->get(IEventDispatcher::class);
$dispatcher->addListener(
MigratorExecuteSqlEvent::class,
- function (MigratorExecuteSqlEvent $event) use ($log) {
+ function (MigratorExecuteSqlEvent $event) use ($log): void {
$log->info(get_class($event).': ' . $event->getSql() . ' (' . $event->getCurrentStep() . ' of ' . $event->getMaxStep() . ')', ['app' => 'updater']);
}
);
- $repairListener = function (Event $event) use ($log) {
+ $repairListener = function (Event $event) use ($log): void {
if ($event instanceof RepairStartEvent) {
$log->info(get_class($event).': Starting ... ' . $event->getMaxStep() . ' (' . $event->getCurrentStepName() . ')', ['app' => 'updater']);
} elseif ($event instanceof RepairAdvanceEvent) {