Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
derrabus commentedSep 13, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thank you. We don't allow merge commits. Please perform a rebase and squash your commits. |
AurelienPillevesse commentedSep 14, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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?
Uh oh!
There was an error while loading.Please reload this page.
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.