From 3e416f2423c9884a88450dc460074a81c9df440d Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 17 Jan 2022 16:13:34 -0500 Subject: [PATCH] Remove unused pass-by-reference This pass-by-ref was causing `civilint` to crash and appears to be unnecessary and possibly harmful. --- CRM/Mailing/BAO/BouncePattern.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Mailing/BAO/BouncePattern.php b/CRM/Mailing/BAO/BouncePattern.php index a56aefa019..4af9768073 100644 --- a/CRM/Mailing/BAO/BouncePattern.php +++ b/CRM/Mailing/BAO/BouncePattern.php @@ -53,7 +53,7 @@ class CRM_Mailing_BAO_BouncePattern extends CRM_Mailing_DAO_BouncePattern { * @return array * Tuple (bounce_type, bounce_reason) */ - public static function &match(&$message) { + public static function match($message) { // clean up $message and replace all white space by a single space, CRM-4767 $message = preg_replace('/\s+/', ' ', $message); -- 2.25.1