From f30e87b8abe84fa5106eb157bca9237292d7051e Mon Sep 17 00:00:00 2001
From: Mike Lewis <mlewis@duoconsulting.com>
Date: Wed, 4 Dec 2019 11:15:02 -0500
Subject: [PATCH] Removed create_function

---
 mailmime.inc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/mailmime.inc b/mailmime.inc
index b532aa9..965ca86 100644
--- a/mailmime.inc
+++ b/mailmime.inc
@@ -780,8 +780,10 @@ class MailMIME extends Mail_mime {
     }
     foreach ($input as $name => $value) {
       $name = preg_replace_callback(
-          '/([[:alpha:]])([[:alpha:]]+)/',
-          create_function('$matches', 'return strtoupper($matches[1]) . strtolower($matches[2]);'),
+        '/([[:alpha:]])([[:alpha:]]+)/',
+        function($matches) {
+          return strtoupper($matches[1]) . strtolower($matches[2]);
+        },
         $name
       );
       $name = preg_replace(
-- 
2.20.1

