diff --git a/src/Gerencianet/Endpoints.php b/src/Gerencianet/Endpoints.php index ffd2556..98332d1 100644 --- a/src/Gerencianet/Endpoints.php +++ b/src/Gerencianet/Endpoints.php @@ -57,7 +57,7 @@ public static function __callStatic($method, $args) private function map() { $this->methods = array_map(function ($endpoint) { - return function ($params, $body) use ($endpoint) { + return function ($params = [], $body = []) use ($endpoint) { $route = $this->getRoute($endpoint, $params); $query = $this->getQueryString($params); $route .= $query;