From e62790cfe2408e6fb018e9848315bb400bcb8846 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sun, 14 Feb 2021 12:43:31 +0100 Subject: Add some closure return types Found by psalm Signed-off-by: Roeland Jago Douma --- apps/accessibility/lib/Controller/ConfigController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/accessibility') diff --git a/apps/accessibility/lib/Controller/ConfigController.php b/apps/accessibility/lib/Controller/ConfigController.php index 5f2f77ed3e1..b918b33f31b 100644 --- a/apps/accessibility/lib/Controller/ConfigController.php +++ b/apps/accessibility/lib/Controller/ConfigController.php @@ -117,7 +117,7 @@ class ConfigController extends OCSController { $highcontrast = [$this->accessibilityProvider->getHighContrast()]; $fonts = $this->accessibilityProvider->getFonts(); - $availableOptions = array_map(function ($option) { + $availableOptions = array_map(function ($option): string { return $option['id']; }, array_merge($themes, $highcontrast, $fonts)); -- cgit v1.2.3