File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2060,7 +2060,7 @@ public function send($content = null)
2060
2060
2061
2061
return $ contents ;
2062
2062
}
2063
-
2063
+
2064
2064
2065
2065
/**
2066
2066
* Log the email message delivery.
@@ -2085,19 +2085,19 @@ protected function _logDelivery($contents)
2085
2085
}
2086
2086
Log::write (
2087
2087
$ config ['level ' ],
2088
- PHP_EOL . $ this ->_isKeyArray ($ contents ['headers ' ]) . PHP_EOL . PHP_EOL . $ this ->_isKeyArray ($ contents ['message ' ]),
2088
+ PHP_EOL . $ this ->flatten ($ contents ['headers ' ]) . PHP_EOL . PHP_EOL . $ this ->flatten ($ contents ['message ' ]),
2089
2089
$ config ['scope ' ]
2090
2090
);
2091
2091
}
2092
-
2093
-
2092
+
2094
2093
/**
2094
+ * Converts an array to string
2095
2095
* @param null $key
2096
- * @return null| string
2096
+ * @return string
2097
2097
*/
2098
- private function _isKeyArray ($ key = null )
2098
+ protected function flatten ($ key = null )
2099
2099
{
2100
- return is_array ($ key ) ? implode ('; ' , $ key ) : $ key ;
2100
+ return is_array ($ key ) ? implode ('; ' , $ key ) : ( string ) $ key ;
2101
2101
}
2102
2102
2103
2103
/**
You can’t perform that action at this time.
0 commit comments