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

@@ -113,7 +113,7 @@ class Export {
throw new \Exception(__('Failed opening file for export.', 'mailpoet'));
}
$formatCSV = function($row) {
return '"' . str_replace('"', '\"', $row) . '"';
return '"' . str_replace('"', '\"', (string)$row) . '"';
};
// add UTF-8 BOM (3 bytes, hex EF BB BF) at the start of the file for
// Excel to automatically recognize the encoding