We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0144363 commit 6937ee1Copy full SHA for 6937ee1
index.php
@@ -505,16 +505,16 @@ private function process($update, $check_time=true) {
505
506
if (in_array('all', $events_type)) {
507
$call = $this->events['all'];
508
- call_user_func_array($call, ["type"=> $type, "data"=> $data]);
+ call_user_func_array($call, [$type, $data]);
509
}
510
511
if (in_array($type, $events_type)) {
512
$call = $this->events[$type];
513
- call_user_func_array($call, ["data"=> $data]);
+ call_user_func_array($call, [$data]);
514
515
516
if ($type == 'unknown') {
517
- call_user_func_array($call, ["type"=> 'update', "data"=> $update]);
+ call_user_func_array($call, ['update', $update]);
518
519
520
return true;
0 commit comments