From 96389fdd8b515b293403435732ff1ecc2efd1bb7 Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Mon, 2 Jun 2025 19:18:28 +0200 Subject: [PATCH] [TASK] Make cart in MailHandler nullable Relates: #665 --- Classes/Service/MailHandler.php | 3 ++- Documentation/guides.xml | 2 +- ext_emconf.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Classes/Service/MailHandler.php b/Classes/Service/MailHandler.php index 55995745..4924439e 100644 --- a/Classes/Service/MailHandler.php +++ b/Classes/Service/MailHandler.php @@ -24,7 +24,8 @@ class MailHandler implements SingletonInterface { protected array $pluginSettings = []; - protected Cart $cart; + + protected ?Cart $cart = null; protected string $buyerEmailName = ''; protected string $buyerEmailFrom = ''; diff --git a/Documentation/guides.xml b/Documentation/guides.xml index 0d01677f..e8c463c5 100644 --- a/Documentation/guides.xml +++ b/Documentation/guides.xml @@ -11,7 +11,7 @@ interlink-shortcode="extcode/cart" /> diff --git a/ext_emconf.php b/ext_emconf.php index 584b1d13..16d29a07 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -4,7 +4,7 @@ 'title' => 'Cart', 'description' => 'Shopping Cart(s) for TYPO3', 'category' => 'plugin', - 'version' => '10.2.5', + 'version' => '10.2.6', 'state' => 'stable', 'author' => 'Daniel Gohlke', 'author_email' => 'ext@extco.de',