diff --git a/src/Symfony/Component/Mime/Part/DataPart.php b/src/Symfony/Component/Mime/Part/DataPart.php index 0da9230c29..bbe8eca10b 100644 --- a/src/Symfony/Component/Mime/Part/DataPart.php +++ b/src/Symfony/Component/Mime/Part/DataPart.php @@ -46,8 +46,6 @@ class DataPart extends TextPart public static function fromPath(string $path, string $name = null, string $contentType = null): self { - // FIXME: if file is not readable, exception? - if (null === $contentType) { $ext = strtolower(substr($path, strrpos($path, '.') + 1)); if (null === self::$mimeTypes) {