From d64dc06eff84d5618cb29081159c1251f4611eab Mon Sep 17 00:00:00 2001 From: Gerd Katzenbeisser Date: Sun, 5 Jul 2020 10:03:02 +0200 Subject: [PATCH] Fix serialized field names in PersistableMessage --- src/Mailer/PersistableMessage.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mailer/PersistableMessage.php b/src/Mailer/PersistableMessage.php index 9ce12e0..683c670 100644 --- a/src/Mailer/PersistableMessage.php +++ b/src/Mailer/PersistableMessage.php @@ -11,16 +11,16 @@ public function __construct(Message $email = null) if ($email === null) return; $this->createFromArray($email->jsonSerialize()); - $this->_message = $email->message; - $this->_htmlMessage = $email->htmlMessage; - $this->_textMessage = $email->textMessage; + $this->message = $email->message; + $this->htmlMessage = $email->htmlMessage; + $this->textMessage = $email->textMessage; } public function jsonSerialize(): array { $array = parent::jsonSerialize(); - $properties = ['_message', '_htmlMessage', '_textMessage']; + $properties = ['message', 'htmlMessage', 'textMessage']; foreach($properties as $property) $array[$property] = $this->{$property}; return $array;