Skip to content

Commit af8e69e

Browse files
committed
[Mime] use fromString when creating a new Adress
1 parent 555def0 commit af8e69e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static function create($address): self
8989
return $address;
9090
}
9191
if (\is_string($address)) {
92-
return new self($address);
92+
return self::fromString($address);
9393
}
9494

9595
throw new InvalidArgumentException(sprintf('An address can be an instance of Address or a string ("%s") given).', \is_object($address) ? \get_class($address) : \gettype($address)));

0 commit comments

Comments
 (0)