File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -335,8 +335,8 @@ protected function renderAttachments() : string
335
335
}
336
336
$ filename = \pathinfo ($ attachment , \PATHINFO_BASENAME );
337
337
$ filename = \htmlspecialchars ($ filename , \ENT_QUOTES | \ENT_HTML5 );
338
- $ contents = ( string ) \file_get_contents ($ attachment );
339
- $ contents = \base64_encode ($ contents );
338
+ $ contents = \file_get_contents ($ attachment );
339
+ $ contents = \base64_encode ($ contents ); // @phpstan-ignore-line
340
340
$ part .= '--mixed- ' . $ this ->getBoundary () . $ crlf ;
341
341
$ part .= 'Content-Type: ' . $ this ->getContentType ($ attachment )
342
342
. '; name=" ' . $ filename . '" ' . $ crlf ;
@@ -360,8 +360,8 @@ protected function renderInlineAttachments() : string
360
360
if ( ! \is_file ($ filename )) {
361
361
throw new LogicException ('Inline attachment file not found: ' . $ filename );
362
362
}
363
- $ contents = ( string ) \file_get_contents ($ filename );
364
- $ contents = \base64_encode ($ contents );
363
+ $ contents = \file_get_contents ($ filename );
364
+ $ contents = \base64_encode ($ contents ); // @phpstan-ignore-line
365
365
$ part .= '--mixed- ' . $ this ->getBoundary () . $ crlf ;
366
366
$ part .= 'Content-ID: ' . $ cid . $ crlf ;
367
367
$ part .= 'Content-Type: ' . $ this ->getContentType ($ filename ) . $ crlf ;
You can’t perform that action at this time.
0 commit comments