diff --git a/src/Endpoints/Zones.php b/src/Endpoints/Zones.php index 3a14c587..24fc940a 100644 --- a/src/Endpoints/Zones.php +++ b/src/Endpoints/Zones.php @@ -243,7 +243,7 @@ public function cachePurgeEverything(string $zoneID, bool $includeEnvironments = /** * @SuppressWarnings(PHPMD) */ - public function cachePurge(string $zoneID, array $files = null, array $tags = null, array $hosts = null, bool $includeEnvironments = false): bool + public function cachePurge(string $zoneID, ?array $files = null, ?array $tags = null, ?array $hosts = null, bool $includeEnvironments = false): bool { if ($files === null && $tags === null && $hosts === null) { throw new EndpointException('No files, tags or hosts to purge.');