diff --git a/src/CloudFlare/Api.php b/src/CloudFlare/Api.php index 21f152f..6b99615 100644 --- a/src/CloudFlare/Api.php +++ b/src/CloudFlare/Api.php @@ -171,10 +171,8 @@ protected function request($path, array $data = [], $method = 'get') throw new AuthenticationException('Authentication information must be provided'); } - //Removes null entries - $data = array_filter($data, function ($val) { - return !is_null($val); - }); + // Removes null entries + $data = array_filter($data); $url = 'https://api.cloudflare.com/client/v4/'.$path;