fixed type hints for email attachments

This commit is contained in:
Fabien Potencier 2019-03-25 08:46:22 +01:00
parent f206538c79
commit 8059c50e75

View File

@ -372,7 +372,7 @@ class Email extends Message
/** /**
* @return $this * @return $this
*/ */
public function attachPart(AbstractPart $part) public function attachPart(DataPart $part)
{ {
$this->attachments[] = ['part' => $part]; $this->attachments[] = ['part' => $part];
@ -380,7 +380,7 @@ class Email extends Message
} }
/** /**
* @return AbstractPart[] * @return DataPart[]
*/ */
public function getAttachments(): array public function getAttachments(): array
{ {