Merge pull request #25 from MertOtrk/patch-1

About cache - 1107 Error code
This commit is contained in:
Junade
2017-10-12 01:55:32 +01:00
committed by GitHub

View File

@@ -119,9 +119,9 @@ class Zones implements API
return false; 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."); throw new EndpointException("No files or tags to purge.");
} }