[Mime] DataPart: remove confusing fix-me comment
This commit is contained in:
parent
84b03c135d
commit
72493c6acf
@ -46,8 +46,6 @@ class DataPart extends TextPart
|
|||||||
|
|
||||||
public static function fromPath(string $path, string $name = null, string $contentType = null): self
|
public static function fromPath(string $path, string $name = null, string $contentType = null): self
|
||||||
{
|
{
|
||||||
// FIXME: if file is not readable, exception?
|
|
||||||
|
|
||||||
if (null === $contentType) {
|
if (null === $contentType) {
|
||||||
$ext = strtolower(substr($path, strrpos($path, '.') + 1));
|
$ext = strtolower(substr($path, strrpos($path, '.') + 1));
|
||||||
if (null === self::$mimeTypes) {
|
if (null === self::$mimeTypes) {
|
||||||
|
Reference in New Issue
Block a user