Skip to content

Commit 85f24b5

Browse files
committed
fix(mail): use factory method for FileAttachmentWasNotFound
1 parent 3597b0f commit 85f24b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mail/src/Attachment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static function fromFilesystem(string $path, ?string $name = null, ?strin
6161
$path = Path\normalize($path);
6262

6363
if (! Filesystem\is_file($path)) {
64-
throw new FileAttachmentWasNotFound($path);
64+
throw FileAttachmentWasNotFound::forFilesystemFile($path);
6565
}
6666

6767
return new self(

0 commit comments

Comments
 (0)