From 1b54b35f5216a981609905f3668378e231eb48eb Mon Sep 17 00:00:00 2001 From: Devang Srivastava Date: Mon, 28 Sep 2020 17:31:29 +0530 Subject: [PATCH] Fixed PHP 5 list issue (#47) --- README.md | 2 +- spaces.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b115834..02304ba 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ $my_space = $spaces->space("my-space", "nyc3"); $spaces = Spaces("ACCESS KEY", "SECRET KEY"); //Returns an array of all available Spaces. -$spaces->list(); +$spaces->listSpaces(); ```   diff --git a/spaces.php b/spaces.php index 27c01b0..f94358d 100644 --- a/spaces.php +++ b/spaces.php @@ -49,7 +49,7 @@ function __construct($accessKey, $secretKey, $host = "digitaloceanspaces.com") { /* Lists all your Spaces. */ - function list() { + function listSpaces() { return SpacesResult($this->s3->listBuckets())["Buckets"]; }