Skip to content

Commit

Permalink
Merge pull request #3 from dnadesign/1.0
Browse files Browse the repository at this point in the history
PHP 7.2 compatibility
  • Loading branch information
Nathan authored Nov 24, 2019
2 parents cd2a35c + 7272ea4 commit e72fd34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Cloudflare.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Symbiote\Cloudflare;

use Object;
use SS_Object;
use Controller;
use Director;
use File;
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/PurgeURLTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e72fd34

Please sign in to comment.