Remove unused pass-by-reference
authorColeman Watts <coleman@civicrm.org>
Mon, 17 Jan 2022 21:13:34 +0000 (16:13 -0500)
committerColeman Watts <coleman@civicrm.org>
Mon, 17 Jan 2022 21:13:34 +0000 (16:13 -0500)
This pass-by-ref was causing `civilint` to crash and appears to be unnecessary and possibly harmful.

CRM/Mailing/BAO/BouncePattern.php

index a56aefa019c40a9c1413e827fd0948c01dbaf4f9..4af9768073da0c324921b33b808afdc7a9667921 100644 (file)
@@ -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);