From 10835a6f8286443ea4560f57b79b87a240ea4287 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 8 Nov 2022 10:26:23 +0100 Subject: [PATCH] Resolve PHP 8.2 Creation of dynamic property is deprecated --- snappymail/v/0.0.0/app/libraries/MailSo/Log/Logger.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Log/Logger.php b/snappymail/v/0.0.0/app/libraries/MailSo/Log/Logger.php index ecec59391..d2320280c 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Log/Logger.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Log/Logger.php @@ -191,17 +191,11 @@ class Logger extends \SplFixedArray public function WriteException(\Throwable $oException, int $iType = \LOG_NOTICE, string $sName = '') : void { - if (empty($oException->__WRITTEN__)) { - $oException->__WRITTEN__ = true; - $this->Write((string) $oException, $iType, $sName); - } + $this->Write((string) $oException, $iType, $sName); } public function WriteExceptionShort(\Throwable $oException, int $iType = \LOG_NOTICE, string $sName = '') : void { - if (empty($oException->__WRITTEN__)) { - $oException->__WRITTEN__ = true; - $this->Write($oException->getMessage(), $iType, $sName); - } + $this->Write($oException->getMessage(), $iType, $sName); } }