diff --git a/src/Endpoints/Zones.php b/src/Endpoints/Zones.php index 6a63f92..da9ddfe 100644 --- a/src/Endpoints/Zones.php +++ b/src/Endpoints/Zones.php @@ -119,9 +119,9 @@ class Zones implements API return false; } - public function cachePurge(string $zoneID, array $files = [], array $tags = []): bool + public function cachePurge(string $zoneID, array $files = null, array $tags = null): bool { - if (empty($files) && empty($tags)) { + if (is_null($files) && is_null($tags)) { throw new EndpointException("No files or tags to purge."); }