@@ -12,25 +12,25 @@ class PostmarkAttachment implements JsonSerializable
1212 private $ data ;
1313 private $ contentId ;
1414
15- private function __construct ($ base64EncodedData , $ attachmentName , $ mimeType = 'application/octet-stream ' , $ contentId = null )
15+ private function __construct ($ base64EncodedData , $ attachmentName , $ mimeType = 'application/octet-stream ' , ? string $ contentId = null )
1616 {
1717 $ this ->name = $ attachmentName ;
1818 $ this ->data = $ base64EncodedData ;
1919 $ this ->mimeType = $ mimeType ;
2020 $ this ->contentId = $ contentId ;
2121 }
2222
23- public static function fromRawData ($ data , $ attachmentName , $ mimeType = null , $ contentId = null )
23+ public static function fromRawData ($ data , $ attachmentName , ? string $ mimeType = null , ? string $ contentId = null )
2424 {
2525 return new PostmarkAttachment (base64_encode ($ data ), $ attachmentName , $ mimeType , $ contentId );
2626 }
2727
28- public static function fromBase64EncodedData ($ base64EncodedData , $ attachmentName , $ mimeType = null , $ contentId = null )
28+ public static function fromBase64EncodedData ($ base64EncodedData , $ attachmentName , ? string $ mimeType = null , ? string $ contentId = null )
2929 {
3030 return new PostmarkAttachment ($ base64EncodedData , $ attachmentName , $ mimeType , $ contentId );
3131 }
3232
33- public static function fromFile ($ filePath , $ attachmentName , $ mimeType = null , $ contentId = null )
33+ public static function fromFile ($ filePath , $ attachmentName , ? string $ mimeType = null , ? string $ contentId = null )
3434 {
3535 return new PostmarkAttachment (base64_encode (file_get_contents ($ filePath )), $ attachmentName , $ mimeType , $ contentId );
3636 }
0 commit comments