Skip to content

Commit

Permalink
Cast to string when passing to MailFormatHelper::htmlToText() (#5218)
Browse files Browse the repository at this point in the history
* Cast to string when passing to MailFormatHelper::htmlToText()

* PHP CS

Co-authored-by: Moshe Weitzman <weitzman@tejasa.com>
  • Loading branch information
claudiu-cristea and weitzman committed Sep 5, 2022
1 parent 8f04b46 commit 8e4b72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drupal/DrupalUtil.php
Expand Up @@ -20,7 +20,7 @@ public static function drushRender($data): string
$data = \Drupal::service('renderer')->renderRoot($data);
}

$data = MailFormatHelper::htmlToText($data);
$data = MailFormatHelper::htmlToText((string) $data);
return $data;
}
}

0 comments on commit 8e4b72a

Please sign in to comment.