diff --git a/src/MD_STD.php b/src/MD_STD.php index 9335779..8993242 100644 --- a/src/MD_STD.php +++ b/src/MD_STD.php @@ -755,7 +755,7 @@ public static function mime_content_type(string $filepath):string { throw new Exception("Cannot open finfo context"); } if (!($mime_type = finfo_file($finfo, $filepath))) { - throw new MDWrongFileType("Cannot get mime type of file: " . basename($filepath)); + MDWrongFileType::throw("Cannot get mime type of file: " . basename($filepath), ""); } return $mime_type;