diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-11-16 03:13:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 03:13:54 +0300 |
commit | 3b00013819863472afe30cc04de49c4365c22d21 (patch) | |
tree | e9fde69cde444d190d072386462be74bc50c7d40 /core/Mail.php | |
parent | c4431ba4a12672d8bbb83c4063ff54df39f80b81 (diff) |
Fix some PHP8.1 deprecation warnings occurred while running tests (#18314)
* Fix some PHP8.1 deprecation warnings occurred while running tests
* some more fixes
* avoid null values in names to prevent php 8.1 deprecation warning
* some more fixes
* updates expected test files
* apply review feedback
Diffstat (limited to 'core/Mail.php')
-rw-r--r-- | core/Mail.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/Mail.php b/core/Mail.php index 1986b5501e..0a196b3b17 100644 --- a/core/Mail.php +++ b/core/Mail.php @@ -192,9 +192,9 @@ class Mail * Add Bcc address * * @param string $email - * @param null|string $name + * @param string $name */ - public function addBcc($email, $name = null) + public function addBcc($email, $name = '') { $this->bccs[$email] = $name; } @@ -222,9 +222,9 @@ class Mail * Add Reply-To address * * @param string $email - * @param null|string $name + * @param string $name */ - public function addReplyTo($email, $name = null) + public function addReplyTo($email, $name = '') { $this->replyTos[$this->parseDomainPlaceholderAsPiwikHostName($email)] = $name; } @@ -235,7 +235,7 @@ class Mail * @param string $email * @param string $name */ - public function setReplyTo($email, $name = null) + public function setReplyTo($email, $name = '') { $this->replyTos = []; $this->addReplyTo($email, $name); |