diff --git a/src/Deployment/Deployer.php b/src/Deployment/Deployer.php index 6845164..ba77f04 100644 --- a/src/Deployment/Deployer.php +++ b/src/Deployment/Deployer.php @@ -222,7 +222,8 @@ private function loadDeploymentFile(): ?array } catch (ServerException $e) { return null; } - $content = gzinflate(file_get_contents($tempFile)); + $s = file_get_contents($tempFile); + $content = @gzdecode($s) ?: gzinflate($s); $res = []; foreach (explode("\n", $content) as $item) { if (count($item = explode('=', $item, 2)) === 2) {