Skip to content

Commit f60b1fb

Browse files
janbarasekdg
authored andcommitted
fixed typehints (#61, #63)
1 parent ce48a2c commit f60b1fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Mail/Message.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function setFrom(string $email, string $name = null)
6666
/**
6767
* Returns the sender of the message.
6868
*/
69-
public function getFrom(): array
69+
public function getFrom(): ?array
7070
{
7171
return $this->getHeader('From');
7272
}
@@ -163,7 +163,7 @@ public function setReturnPath(string $email)
163163
/**
164164
* Returns the Return-Path header.
165165
*/
166-
public function getReturnPath(): string
166+
public function getReturnPath(): ?string
167167
{
168168
return $this->getHeader('Return-Path');
169169
}
@@ -183,7 +183,7 @@ public function setPriority(int $priority)
183183
/**
184184
* Returns email priority.
185185
*/
186-
public function getPriority(): int
186+
public function getPriority(): ?int
187187
{
188188
return $this->getHeader('X-Priority');
189189
}

0 commit comments

Comments
 (0)