-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
Email 1 - Address
class
#6629
Email 1 - Address
class
#6629
Conversation
9b3d587
to
245b6a0
Compare
245b6a0
to
097634d
Compare
* Returns one or multiple addresses as array | ||
* where the emails are the keys and the names the values | ||
*/ | ||
public static function resolve(array|Address $address): array |
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.
I think array usage that doesn't includes Address
object is invalid:
// single
Address::resolve(['[email protected]']);
// multiple
Address::resolve([
'[email protected]' => null,
'[email protected]' => 'Lisa Simpson'
]);
If array items are should to be Address
objects, it would be nice to have a type check.
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.
I'll make the method description more explicit. It is only meant to resolve Address objects and arrays of Address objects. There should be no need to support other formats.
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.
Conversation is resolved but I couldn't see any changes?
Closing this for a moment, so we can better focus on some bugs |
Description
Summary of changes
Email\Address
class that handles all address parsing and resolving for from, to, bcc, cc, replyTo::clone()
methodReasoning
Changelog
Removed deprecated code
Email\Email::clone()
Ready?
For review team