mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +00:00
Push vs merge
This commit is contained in:
parent
d4b0ea64ad
commit
67e43cc1a5
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue