From 906cd0e76d79d3cbcc7a2e25500bf1c8d561a431 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 7 Oct 2022 14:44:02 +1300 Subject: [PATCH] API Deprecate render() (#10527) --- src/Control/Email/Email.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Control/Email/Email.php b/src/Control/Email/Email.php index 5fbd20039..d6eb96801 100644 --- a/src/Control/Email/Email.php +++ b/src/Control/Email/Email.php @@ -875,12 +875,16 @@ class Email extends ViewableData } /** + * @deprecated 4.12.0 Will be removed without equivalent functionality to replace it + * * Render the email * @param bool $plainOnly Only render the message as plain text * @return $this */ public function render($plainOnly = false) { + Deprecation::notice('4.12.0', 'Will be removed without equivalent functionality to replace it'); + if ($existingPlainPart = $this->findPlainPart()) { $this->getSwiftMessage()->detach($existingPlainPart); }