Skip to content

Commit

Permalink
Fixed PHP 5 list issue (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
SociallyDev committed Sep 28, 2020
1 parent 57585a9 commit 1b54b35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
```

 
Expand Down
2 changes: 1 addition & 1 deletion spaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
}

Expand Down

0 comments on commit 1b54b35

Please sign in to comment.