Skip to content

Commit 4c821f3

Browse files
committed
Allow attachment filenames to be nullable
1 parent ec5aae6 commit 4c821f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Attachment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ class Attachment implements Arrayable, JsonSerializable
1313
* Constructor.
1414
*/
1515
public function __construct(
16-
protected string $filename,
16+
protected ?string $filename,
1717
protected string $contentType,
1818
protected StreamInterface $contentStream,
1919
) {}
2020

2121
/**
2222
* Get the attachment's filename.
2323
*/
24-
public function filename(): string
24+
public function filename(): ?string
2525
{
2626
return $this->filename;
2727
}

0 commit comments

Comments
 (0)