Skip to content

Commit 7b0d3ae

Browse files
authored
Update Email.php
Fix php stan error about creating TextPart with null instead of string - convert null to empty string if needed. Signed-off-by: APaikens <shamanis@gmail.com>
1 parent f82b8a3 commit 7b0d3ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ private function generateBody(): AbstractPart
297297
}
298298
}
299299

300-
return $part ?? new TextPart($this->text, $this->textCharset);
300+
return $part ?? new TextPart((string) $this->text, $this->textCharset);
301301
}
302302

303303
private function prepareParts(): array

0 commit comments

Comments
 (0)