projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d644e77
)
Remove unused pass-by-reference
author
Coleman Watts
<coleman@civicrm.org>
Mon, 17 Jan 2022 21:13:34 +0000
(16:13 -0500)
committer
Coleman 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
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Mailing/BAO/BouncePattern.php
b/CRM/Mailing/BAO/BouncePattern.php
index a56aefa019c40a9c1413e827fd0948c01dbaf4f9..4af9768073da0c324921b33b808afdc7a9667921 100644
(file)
--- 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);