From eaf769905a87e2cce0de7562564200752dd1f41a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Mart=C3=ADn?= Date: Mon, 8 Aug 2022 12:17:35 +0200 Subject: [PATCH] Fix: Deprecated function updated --- src/Dropbox/DropboxFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dropbox/DropboxFile.php b/src/Dropbox/DropboxFile.php index 551aa6a..4b9c225 100644 --- a/src/Dropbox/DropboxFile.php +++ b/src/Dropbox/DropboxFile.php @@ -331,6 +331,6 @@ public function getSize() */ public function getMimetype() { - return \GuzzleHttp\Psr7\mimetype_from_filename($this->path) ?: 'text/plain'; + return \GuzzleHttp\Psr7\MimeType::fromFilename($this->path) ?: 'text/plain'; } }