Fix deprecated usage of string functions

[MAILPOET-4001]
This commit is contained in:
Jan Lysý
2022-01-05 16:49:28 +01:00
committed by Veljko V
parent f249b379f8
commit 492415f3ae
5 changed files with 8 additions and 8 deletions

View File

@@ -39,7 +39,7 @@ class SMTPMapper {
public function getErrorFromLog($log, $subscriber) {
// extract error message from log
preg_match('/!! (.*?)>>/ism', $log, $message);
preg_match('/!! (.*?)>>/ism', (string)$log, $message);
if (!empty($message[1])) {
$message = $message[1];
// remove line breaks from the message due to how logger's dump() method works