From 77114fb3277742fc69ddcf2432311ecb263af97e Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 24 Sep 2024 15:53:13 +0200 Subject: fix(OpenAPI): Adjust array syntax to avoid ambiguities Signed-off-by: provokateurin --- apps/dav/lib/Controller/UpcomingEventsController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/dav/lib') diff --git a/apps/dav/lib/Controller/UpcomingEventsController.php b/apps/dav/lib/Controller/UpcomingEventsController.php index c8eb39abb17..a5d54f44754 100644 --- a/apps/dav/lib/Controller/UpcomingEventsController.php +++ b/apps/dav/lib/Controller/UpcomingEventsController.php @@ -35,7 +35,7 @@ class UpcomingEventsController extends OCSController { * Get information about upcoming events * * @param string|null $location location/URL to filter by - * @return DataResponse|DataResponse + * @return DataResponse}, array{}>|DataResponse * * 200: Upcoming events * 401: When not authenticated @@ -47,10 +47,10 @@ class UpcomingEventsController extends OCSController { } return new DataResponse([ - 'events' => array_map(fn (UpcomingEvent $e) => $e->jsonSerialize(), $this->service->getEvents( + 'events' => array_values(array_map(fn (UpcomingEvent $e) => $e->jsonSerialize(), $this->service->getEvents( $this->userId, $location, - )), + ))), ]); } -- cgit v1.2.3