diff options
author | dizzy <diosmosis@users.noreply.github.com> | 2021-07-21 16:50:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 16:50:00 +0300 |
commit | 51ce3db0a78780476cff5e71f37febb2f47d1a36 (patch) | |
tree | 4948b466c4be5dc75cebabf22d28e9954f7783e1 /core/Mail.php | |
parent | 442c382b8f3f848028c9b7e2bf813ae585ec1214 (diff) |
do not introduce breaking change in Mail.send (#17800)
* do not introduce breaking change in Mail.send
* there is already an event for this
* remove changelog entry
Diffstat (limited to 'core/Mail.php')
-rw-r--r-- | core/Mail.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/core/Mail.php b/core/Mail.php index 01f8926916..1986b5501e 100644 --- a/core/Mail.php +++ b/core/Mail.php @@ -285,14 +285,9 @@ class Mail * This event is posted right before an email is sent. You can use it to customize the email by, for example, replacing * the subject/body, changing the from address, etc. * - * @param Mail &$mail The Mail instance that is about to be sent. Set it to null to stop the email from - * being sent. + * @param Mail $mail The Mail instance that is about to be sent. */ - Piwik::postEvent('Mail.send', [&$mail]); - - if (empty($mail)) { - return null; - } + Piwik::postEvent('Mail.send', [$mail]); return StaticContainer::get('Piwik\Mail\Transport')->send($mail); } |