Remove phpstan errors from the rest of the code

[MAILPOET-3235]
This commit is contained in:
Jan Lysý
2021-01-12 12:15:35 +01:00
committed by Veljko V
parent 479f2cf198
commit 4390a1932d
9 changed files with 27 additions and 9 deletions

View File

@@ -73,12 +73,12 @@ class Links {
$linkToReplace = $processedLink['link'];
$replacementLink = $processedLink['processed_link'];
if ($processedLink['type'] == self::LINK_TYPE_SHORTCODE) {
$content = str_replace($linkToReplace, $replacementLink, $content);
$content = str_replace($linkToReplace, $replacementLink, (string)$content);
}
$content = preg_replace(
'/\[(.*?)\](\(' . preg_quote($linkToReplace, '/') . '\))/',
'[$1](' . $replacementLink . ')',
$content
(string)$content
);
}
return [