Skip to content

Commit

Permalink
Initialize address as null (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmurdoch authored Aug 20, 2021
1 parent 857edb2 commit 45eb491
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Message/EmailAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public function __construct(string $mailbox, string $hostname = null, string $na
$this->mailbox = $mailbox;
$this->hostname = $hostname;
$this->name = $name;
$this->address = null;

if (null !== $hostname) {
$this->address = $mailbox . '@' . $hostname;
Expand Down

0 comments on commit 45eb491

Please sign in to comment.