Skip to content
Permalink
Browse files

fixed typehints (#61, #63)

  • Loading branch information...
janbarasek authored and dg committed Apr 11, 2019
1 parent ce48a2c commit f60b1fb8a195ebefe882a6bc5925dd75a4bcf7ef
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Mail/Message.php
@@ -66,7 +66,7 @@ public function setFrom(string $email, string $name = null)
/**
* Returns the sender of the message.
*/
public function getFrom(): array
public function getFrom(): ?array
{
return $this->getHeader('From');
}
@@ -163,7 +163,7 @@ public function setReturnPath(string $email)
/**
* Returns the Return-Path header.
*/
public function getReturnPath(): string
public function getReturnPath(): ?string
{
return $this->getHeader('Return-Path');
}
@@ -183,7 +183,7 @@ public function setPriority(int $priority)
/**
* Returns email priority.
*/
public function getPriority(): int
public function getPriority(): ?int
{
return $this->getHeader('X-Priority');
}

0 comments on commit f60b1fb

Please sign in to comment.
You can’t perform that action at this time.