About cache - 1107 Error code

This commit is contained in:
Mert Oturak
2017-10-12 03:42:35 +03:00
committed by GitHub
parent e1cf1ae41f
commit a909f3780e

View File

@@ -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.");
}