From 693111656190429273686c6cafbab706748129b2 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 22 Jun 2022 16:44:30 +0200 Subject: [PATCH] fix: assoc events array from events class --- src/Appwrite/Event/Event.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Event/Event.php b/src/Appwrite/Event/Event.php index 0d1612ad36..222cf59444 100644 --- a/src/Appwrite/Event/Event.php +++ b/src/Appwrite/Event/Event.php @@ -462,6 +462,9 @@ class Event $events = \array_map(fn (string $event) => \str_replace(['[', ']'], '', $event), $events); $events = \array_unique($events); - return $events; + /** + * Force a non-assoc array. + */ + return \array_values($events); } }