From e2d81d4c8baeadc4a9bd51063f628c441882ac41 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 24 Apr 2018 12:23:14 -0400 Subject: [PATCH] Add warnings that were missed before. Refs #11988 --- src/Mailer/Email.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mailer/Email.php b/src/Mailer/Email.php index 97dcffff8cb..19cfde97a1d 100644 --- a/src/Mailer/Email.php +++ b/src/Mailer/Email.php @@ -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(); } @@ -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(); }