mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Push vs merge
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user