Skip to content

Commit

Permalink
Fixed return when not using array as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
neneone authored Aug 29, 2019
1 parent 9f25e99 commit f534d04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/BotAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public function __call($name, $args)
$argsAPI[$field['name']] = $args[$i];
$i++;
}
$this->BotAPI($name, $argsAPI);
return $argsAPI;
return $this->BotAPI($name, $argsAPI);
} else {
throw new \neneone\neneone\Exception('Method not found');
}
Expand Down

0 comments on commit f534d04

Please sign in to comment.