Skip to content

Commit

Permalink
Update gateway.php
Browse files Browse the repository at this point in the history
  • Loading branch information
xielei committed Dec 20, 2021
1 parent 95f22b8 commit f7a5b73
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/init/gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@

$this->sendToProcess([
'event' => $event,
'args' => json_decode(json_encode($args), true),
'args' => array_map(function ($arg) {
return (array)$arg;
}, $args),
]);
});
}
Expand All @@ -75,7 +77,9 @@

$this->sendToProcess([
'event' => 'Close',
'args' => json_decode(json_encode($args), true),
'args' => array_map(function ($arg) {
return (array)$arg;
}, $args),
]);
});

Expand Down

0 comments on commit f7a5b73

Please sign in to comment.