minor #40962 [Mime] DataPart: remove confusing fix-me comment (dmaicher)

This PR was merged into the 4.4 branch.

Discussion
----------

[Mime] DataPart: remove confusing fix-me comment

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

I don't think this comment is correct? There is an exception thrown [below](https://github.com/symfony/symfony/blob/4.4/src/Symfony/Component/Mime/Part/DataPart.php#L60).

Commits
-------

72493c6acf [Mime] DataPart: remove confusing fix-me comment
This commit is contained in:
Nyholm 2021-04-27 17:37:43 +02:00
commit b306bdb524
No known key found for this signature in database
GPG Key ID: D6332DE2B6F8FA38

View File

@ -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) {