From 8059c50e75108f5752cc7bc9916764cb9f9e4cf6 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 25 Mar 2019 08:46:22 +0100 Subject: [PATCH] fixed type hints for email attachments --- src/Symfony/Component/Mime/Email.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Mime/Email.php b/src/Symfony/Component/Mime/Email.php index ee5d478bf461..5a1e57aa6746 100644 --- a/src/Symfony/Component/Mime/Email.php +++ b/src/Symfony/Component/Mime/Email.php @@ -372,7 +372,7 @@ public function embedFromPath(string $path, string $name = null, string $content /** * @return $this */ - public function attachPart(AbstractPart $part) + public function attachPart(DataPart $part) { $this->attachments[] = ['part' => $part]; @@ -380,7 +380,7 @@ public function attachPart(AbstractPart $part) } /** - * @return AbstractPart[] + * @return DataPart[] */ public function getAttachments(): array {