From a909f3780e55ed0eb9901170c9ca22ac66d275b9 Mon Sep 17 00:00:00 2001 From: Mert Oturak <14320594+MertOtrk@users.noreply.github.com> Date: Thu, 12 Oct 2017 03:42:35 +0300 Subject: [PATCH] About cache - 1107 Error code --- src/Endpoints/Zones.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."); }