From 16339b02cdb9a6f234a1313ef5a276282c74de9e Mon Sep 17 00:00:00 2001 From: Alexandre Saelens Date: Wed, 6 Nov 2019 10:17:01 +1300 Subject: [PATCH 1/2] PHP 7.2 compatibility --- src/Cloudflare.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cloudflare.php b/src/Cloudflare.php index 8f1cf40..7ce5a8c 100644 --- a/src/Cloudflare.php +++ b/src/Cloudflare.php @@ -2,7 +2,7 @@ namespace Symbiote\Cloudflare; -use Object; +use SS_Object; use Controller; use Director; use File; @@ -13,7 +13,7 @@ use Cloudflare\Api; use Cloudflare\Zone\Cache; -class Cloudflare extends Object +class Cloudflare extends SS_Object { /** * Cloudflare can only purge 500 files per request. From 7272ea47c2d87824b296300af4774c4e68952f9f Mon Sep 17 00:00:00 2001 From: Alexandre Saelens Date: Thu, 7 Nov 2019 14:05:21 +1300 Subject: [PATCH 2/2] Fix invalid method param --- src/PurgeURLTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PurgeURLTask.php b/src/PurgeURLTask.php index 8ef2ef4..e2052e5 100644 --- a/src/PurgeURLTask.php +++ b/src/PurgeURLTask.php @@ -10,7 +10,7 @@ class PurgeURLTask extends PurgeTask protected $param_url = array(); - public function run($request) + public function run($request = null) { $url = $request->getVar('purge_url'); if (!$url) {