Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Mime] Throw exception when body in Email attach method is not ok#46367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[Mime] Throw exception when body in Email attach method is not ok#46367
Uh oh!
There was an error while loading.Please reload this page.
Conversation
402997f to30f7dc8Compare
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
A few more methods would need the check, egembed()
Uh oh!
There was an error while loading.Please reload this page.
| /** | ||
| * @param resource|string $body | ||
| * @param resource|string|null $body |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Was not documented before but null car be pass
Uh oh!
There was an error while loading.Please reload this page.
d8a0ee1 to8561c4eComparenicolas-grekas commentedMay 21, 2022
Thank you@alamirault. |
As proposed in#45350, throw exception when calling
(new Email())->attach($badBodyType);when type is not supported