From c656520acd1d98669d28f35f5ab740a3cd2e1935 Mon Sep 17 00:00:00 2001 From: "Stefano D. Mtangoo" Date: Mon, 21 Aug 2023 19:59:13 +0300 Subject: [PATCH] Make message class inheritable again Some key properties of the class Message are private preventing any proper inheritance. Open them up by making them protected --- src/Message.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Message.php b/src/Message.php index 89fcf07..a3f3389 100644 --- a/src/Message.php +++ b/src/Message.php @@ -26,8 +26,8 @@ */ class Message extends BaseMessage implements MessageWrapperInterface { - private Email $email; - private string $charset = 'utf-8'; + protected Email $email; + protected string $charset = 'utf-8'; public function __construct(array $config = []) { $this->email = new Email();