From 956c7ef5ce21240c21c7dd1d05a78b38113878a5 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 28 Feb 2023 12:01:52 +1300 Subject: [PATCH] Remove unnecessary pass-by-reference --- CRM/Utils/Mail/Logger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Utils/Mail/Logger.php b/CRM/Utils/Mail/Logger.php index 7290609c21..bc70ae0989 100644 --- a/CRM/Utils/Mail/Logger.php +++ b/CRM/Utils/Mail/Logger.php @@ -44,7 +44,7 @@ class CRM_Utils_Mail_Logger { * @param string[] $headers * @param string $message */ - public static function log(&$to, &$headers, &$message) { + public static function log($to, $headers, $message) { if (is_array($to)) { $toString = implode(', ', $to); $fileName = $to[0]; @@ -52,7 +52,7 @@ class CRM_Utils_Mail_Logger { else { $toString = $fileName = $to; } - $content = "To: " . $toString . "\n"; + $content = 'To: ' . $toString . "\n"; foreach ($headers as $key => $val) { $content .= "$key: $val\n"; } -- 2.25.1