From f9cb517ea52a0a6e099a5e6b6e9c0a556aff7247 Mon Sep 17 00:00:00 2001 From: tinect Date: Sat, 3 Feb 2024 23:31:49 +0100 Subject: [PATCH] fix: [AsyncAwsS3] update simpleS3 for test and adjust getPresignedUrl declaration --- src/AsyncAwsS3/S3ClientStub.php | 2 +- src/AsyncAwsS3/composer.json | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/AsyncAwsS3/S3ClientStub.php b/src/AsyncAwsS3/S3ClientStub.php index f83e7c815..064485728 100644 --- a/src/AsyncAwsS3/S3ClientStub.php +++ b/src/AsyncAwsS3/S3ClientStub.php @@ -181,7 +181,7 @@ public function getUrl(string $bucket, string $key): string return $this->actualClient->getUrl($bucket, $key); } - public function getPresignedUrl(string $bucket, string $key, ?DateTimeImmutable $expires = null): string + public function getPresignedUrl(string $bucket, string $key, ?DateTimeImmutable $expires = null, ?string $versionId = null): string { return $this->actualClient->getPresignedUrl($bucket, $key, $expires); } diff --git a/src/AsyncAwsS3/composer.json b/src/AsyncAwsS3/composer.json index bd34a4f7f..34f8bfef7 100644 --- a/src/AsyncAwsS3/composer.json +++ b/src/AsyncAwsS3/composer.json @@ -15,11 +15,10 @@ "async-aws/s3": "^1.5 || ^2.0" }, "require-dev": { - "async-aws/simple-s3": "^1.1 || ^2.0" + "async-aws/simple-s3": "^2.1" }, "conflict": { - "symfony/http-client": "<5.2", - "async-aws/simple-s3": "<1.1" + "symfony/http-client": "<5.2" }, "license": "MIT", "authors": [