Remove deprecated (and useless) function finfo_close
This commit is contained in:
@@ -741,7 +741,6 @@ final class MD_STD {
|
|||||||
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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user