Skip to content

Commit

Permalink
Add warnings that were missed before.
Browse files Browse the repository at this point in the history
Refs #11988
  • Loading branch information
markstory committed Apr 24, 2018
1 parent d02e313 commit e2d81d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mailer/Email.php
Expand Up @@ -423,6 +423,7 @@ public function getFrom()
*/
public function from($email = null, $name = null)
{
deprecationWarning('Email::from() is deprecated. Use Email::setFrom() or Email::getFrom() instead.');
if ($email === null) {
return $this->getFrom();
}
Expand Down Expand Up @@ -601,6 +602,7 @@ public function getReturnPath()
*/
public function returnPath($email = null, $name = null)
{
deprecationWarning('Email::returnPath() is deprecated. Use Email::setReturnPath() or Email::getReturnPath() instead.');
if ($email === null) {
return $this->getReturnPath();
}
Expand Down

0 comments on commit e2d81d4

Please sign in to comment.