-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Mime] Allow to add some headers as a strings #51601
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thank you. We don't allow merge commits. Please perform a rebase and squash your commits. |
In addition to the !is_array verification, verifying that it's a string should be added no? |
When something other than a string is passed, the message seems rather explicit. Argument #2 ($value) must be of type string, DateTime given What do you think should happen if you don't have a string? |
This is fine, I think. |
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.
can you please update the PR title (+ commit title) so that it's turned into a positive sentence about what this does?
Thank you @Oipnet. |
When adding a MailboxListHeader header, the constructor expects an array as parameter.
To simplify the UX, we now allow you to pass a string to the addHeader method in the case of a MailBoxListHeader. The header value is then converted to an array.