8000 fixed type hints for email attachments · symfony/symfony@8059c50 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 8059c50

Browse files
committed
fixed type hints for email attachments
1 parent f206538 commit 8059c50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Mime/Email.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,15 @@ public function embedFromPath(string $path, string $name = null, string $content
372372
/**
373373
* @return $this
374374
*/
375-
public function attachPart(AbstractPart $part)
375+
public function attachPart(DataPart $part)
376376
{
377377
$this->attachments[] = ['part' => $part];
378378

379379
return $this;
380380
}
381381

382382
/**
383-
* @return AbstractPart[]
383+
* @return DataPart[]
384384
*/
385385
public function getAttachments(): array
386386
{

0 commit comments

Comments
 (0)
0