From 67e43cc1a5c59e36888b5286c4aff2ff2b60b131 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 30 Jan 2026 21:48:36 +1300 Subject: [PATCH] Push vs merge --- src/Appwrite/Functions/EventProcessor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Functions/EventProcessor.php b/src/Appwrite/Functions/EventProcessor.php index 8791cbd6ec..e9c3b7241a 100644 --- a/src/Appwrite/Functions/EventProcessor.php +++ b/src/Appwrite/Functions/EventProcessor.php @@ -58,7 +58,7 @@ class EventProcessor foreach ($functions as $function) { $functionEvents = $function->getAttribute('events', []); if (!empty($functionEvents)) { - $events = array_merge($events, $functionEvents); + \array_push($events, ...$functionEvents); } } } @@ -93,7 +93,7 @@ class EventProcessor $webhookEvents = $webhook->getAttribute('events', []); if (!empty($webhookEvents)) { - $events = array_merge($events, $webhookEvents); + \array_push($events, ...$webhookEvents); } }