Skip to content

Commit

Permalink
Merge pull request #29 from arquivei/fix/Guzzle7_Unwrap
Browse files Browse the repository at this point in the history
Fix | Guzzle 7 Unwrap
  • Loading branch information
ricardo-arquivei authored Mar 11, 2024
2 parents 837d6b9 + 9a00717 commit 7cb2b46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ArquiveiStorage/Adapters/AmazonAwsStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function getObjectAsync(array $keys): array
'Key' => $this->key($key),
]);
}
$objects = Promise\unwrap($promises);
$objects = Promise\Utils::unwrap($promises);
return array_map(function ($object) {
return $object['Body']->getContents();
}, $objects);
Expand Down
2 changes: 1 addition & 1 deletion src/ArquiveiStorage/Adapters/GoogleCloudStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getObjectAsync(array $keys): array
return $data;
});
}
$objects = Promise\unwrap($promises);
$objects = Promise\Utils::unwrap($promises);
return array_map(function ($object) {
return $object->getContents();
}, $objects);
Expand Down

0 comments on commit 7cb2b46

Please sign in to comment.