From 3ce2cebeb3474bcebdab4695e9dbb1e7668c12c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin?= Date: Mon, 30 Oct 2023 15:02:22 +0100 Subject: [PATCH] Update src/Gaufrette/Adapter/AsyncAwsS3.php Co-authored-by: Pierre PLAZANET --- src/Gaufrette/Adapter/AsyncAwsS3.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Gaufrette/Adapter/AsyncAwsS3.php b/src/Gaufrette/Adapter/AsyncAwsS3.php index 972cdf38..06f5daa2 100644 --- a/src/Gaufrette/Adapter/AsyncAwsS3.php +++ b/src/Gaufrette/Adapter/AsyncAwsS3.php @@ -314,6 +314,9 @@ protected function computeKey(string $path): string return ltrim(substr($path, strlen($this->options['directory'])), '/'); } + /** + * @param string|resource $content + */ private function guessContentType(mixed $content): bool|string { $fileInfo = new \finfo(FILEINFO_MIME_TYPE);