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

@@ -101,7 +101,7 @@ class Text {
$paragraph->remove();
continue;
}
$style = $paragraph->style;
$style = (string)$paragraph->style;
if (!preg_match('/text-align/i', $style)) {
$style = 'text-align: left;' . $style;
}