Skip to content

Commit 5403184

Browse files
committed
Merge pull request #16 from ArabCoders/master
fixes Undefined property in message when calling Message->getSubject()
2 parents 33d6739 + f65772f commit 5403184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Fetch/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public function getDate()
367367
*/
368368
public function getSubject()
369369
{
370-
return $this->subject;
370+
return isset($this->subject) ? $this->subject : null;
371371
}
372372

373373
/**

0 commit comments

Comments
 (0)