Remove deprecated (and useless) function finfo_close

This commit is contained in:
jrenslin committed 2025-11-28 02:34:13 +01:00
1 parent a2c2baa8c2
commit 55b8f3fc69
1 file changed
-1
-1
View File
@@ -741,7 +741,6 @@ public static function mime_content_type(string $filepath):string {
if (!($mime_type = finfo_file($finfo, $filepath))) { if (!($mime_type = finfo_file($finfo, $filepath))) {
throw new MDWrongFileType("Cannot get mime type of file: " . basename($filepath)); throw new MDWrongFileType("Cannot get mime type of file: " . basename($filepath));
} }
\finfo_close($finfo);
return $mime_type; return $mime_type;