Merge branch '5.1'
* 5.1: [Mime] use fromString when creating a new Adress
This commit is contained in:
commit
61d79e19a9
|
@ -89,7 +89,7 @@ final class Address
|
|||
return $address;
|
||||
}
|
||||
if (\is_string($address)) {
|
||||
return new self($address);
|
||||
return self::fromString($address);
|
||||
}
|
||||
|
||||
throw new InvalidArgumentException(sprintf('An address can be an instance of Address or a string ("%s" given).', get_debug_type($address)));
|
||||
|
|
Reference in New Issue