From 113756db30fcbffe9e90b54c29e78dee0676109f Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Tue, 19 Oct 2021 17:11:53 +0200 Subject: Fix ArrayAccess and JsonSerializable return types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet --- apps/theming/lib/Service/JSDataService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/theming') diff --git a/apps/theming/lib/Service/JSDataService.php b/apps/theming/lib/Service/JSDataService.php index a6e5d6f8e36..1c4d138a764 100644 --- a/apps/theming/lib/Service/JSDataService.php +++ b/apps/theming/lib/Service/JSDataService.php @@ -50,7 +50,7 @@ class JSDataService implements \JsonSerializable { $this->appConfig = $appConfig; } - public function jsonSerialize() { + public function jsonSerialize(): array { return [ 'name' => $this->themingDefaults->getName(), 'url' => $this->themingDefaults->getBaseUrl(), -- cgit v1.2.3