From f0201f39add1b9870772f608ab64b3afe5cd27ef Mon Sep 17 00:00:00 2001 From: Michael Tully Date: Mon, 7 Aug 2017 21:36:07 +0100 Subject: [PATCH] Removes array_filter callable to use default behaviour --- src/CloudFlare/Api.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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;