From 9a0071712e0dc19e9f40e8667d57d1828d53279a Mon Sep 17 00:00:00 2001 From: Ricardo Rodrigues Date: Mon, 11 Mar 2024 16:25:44 -0300 Subject: [PATCH] Fix | Guzzle 7 Unwrap --- src/ArquiveiStorage/Adapters/AmazonAwsStorage.php | 2 +- src/ArquiveiStorage/Adapters/GoogleCloudStorage.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ArquiveiStorage/Adapters/AmazonAwsStorage.php b/src/ArquiveiStorage/Adapters/AmazonAwsStorage.php index 3c81d0e..9325de8 100644 --- a/src/ArquiveiStorage/Adapters/AmazonAwsStorage.php +++ b/src/ArquiveiStorage/Adapters/AmazonAwsStorage.php @@ -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); diff --git a/src/ArquiveiStorage/Adapters/GoogleCloudStorage.php b/src/ArquiveiStorage/Adapters/GoogleCloudStorage.php index e51ea05..0a34195 100644 --- a/src/ArquiveiStorage/Adapters/GoogleCloudStorage.php +++ b/src/ArquiveiStorage/Adapters/GoogleCloudStorage.php @@ -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);