diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-10-14 17:25:49 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-10-15 11:39:56 +0300 |
commit | 6f9d48f6ff606031533f229b802c7e893fe35e10 (patch) | |
tree | d3bd310d05eef9d5332a3840c9a3c84cfc902883 /lib/Address.php | |
parent | 4f89fbf81f91150229f66334dec6dfe5f40709c1 (diff) |
Fix some issues reported by Psalm
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Address.php')
-rw-r--r-- | lib/Address.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Address.php b/lib/Address.php index de2bb2785..8f82c8b32 100644 --- a/lib/Address.php +++ b/lib/Address.php @@ -52,7 +52,7 @@ class Address implements JsonSerializable { public static function fromRaw(string $label, string $email): self { $wrapped = new Horde_Mail_Rfc822_Address($email); // If no label is set we use the email - if ($label !== $email && $label !== null) { + if ($label !== $email) { $wrapped->personal = $label; } return new self($wrapped); |