API Deprecate render() (#10527)

This commit is contained in:
Steve Boyd 2022-10-07 14:44:02 +13:00 committed by GitHub
parent 8419984b36
commit 906cd0e76d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -875,12 +875,16 @@ class Email extends ViewableData
} }
/** /**
* @deprecated 4.12.0 Will be removed without equivalent functionality to replace it
*
* Render the email * Render the email
* @param bool $plainOnly Only render the message as plain text * @param bool $plainOnly Only render the message as plain text
* @return $this * @return $this
*/ */
public function render($plainOnly = false) public function render($plainOnly = false)
{ {
Deprecation::notice('4.12.0', 'Will be removed without equivalent functionality to replace it');
if ($existingPlainPart = $this->findPlainPart()) { if ($existingPlainPart = $this->findPlainPart()) {
$this->getSwiftMessage()->detach($existingPlainPart); $this->getSwiftMessage()->detach($existingPlainPart);
} }