summaryrefslogtreecommitdiffstats
path: root/core/ajax
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 /core/ajax
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 'core/ajax')
-rw-r--r--core/ajax/update.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 105cedd05f2..acd8c3b22c0 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -121,9 +121,12 @@ if (\OCP\Util::needUpgrade()) {
/** @var IEventDispatcher $dispatcher */
$dispatcher = \OC::$server->get(IEventDispatcher::class);
- $dispatcher->addListener(MigratorExecuteSqlEvent::class, function (MigratorExecuteSqlEvent $event) use ($eventSource, $l) {
- $eventSource->send('success', $l->t('[%d / %d]: %s', [$event->getCurrentStep(), $event->getMaxStep(), $event->getSql()]));
- });
+ $dispatcher->addListener(
+ MigratorExecuteSqlEvent::class,
+ function (MigratorExecuteSqlEvent $event) use ($eventSource, $l): void {
+ $eventSource->send('success', $l->t('[%d / %d]: %s', [$event->getCurrentStep(), $event->getMaxStep(), $event->getSql()]));
+ }
+ );
$feedBack = new FeedBackHandler($eventSource, $l);
$dispatcher->addListener(RepairStartEvent::class, [$feedBack, 'handleRepairFeedback']);
$dispatcher->addListener(RepairAdvanceEvent::class, [$feedBack, 'handleRepairFeedback']);