Skip to content

Commit

Permalink
Merge pull request #8 from sy-records/patch-1
Browse files Browse the repository at this point in the history
fix: Call to undefined method Result::get()
  • Loading branch information
overtrue authored Jul 11, 2020
2 parents e4be7f6 + 96d0859 commit c36f768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CosAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ public function listContents($directory = '', $recursive = false)

$response = $this->listObjects($directory, $recursive);

foreach ((array) $response->get('Contents') as $content) {
foreach ((array) $response['Contents'] as $content) {
$list[] = $this->normalizeFileInfo($content);
}

Expand Down

0 comments on commit c36f768

Please sign in to comment.