Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordizzy <diosmosis@users.noreply.github.com>2021-07-21 16:50:00 +0300
committerGitHub <noreply@github.com>2021-07-21 16:50:00 +0300
commit51ce3db0a78780476cff5e71f37febb2f47d1a36 (patch)
tree4948b466c4be5dc75cebabf22d28e9954f7783e1 /core/Mail.php
parent442c382b8f3f848028c9b7e2bf813ae585ec1214 (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.php9
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);
}