From 2e84e744bc5bdcf7f80ebbc2122f29215edf5cb7 Mon Sep 17 00:00:00 2001 From: Boris van Katwijk Date: Wed, 23 Aug 2023 12:02:48 +0000 Subject: [PATCH] [BUGFIX][#67][NEND-744] PHP Deprecated: Creation of dynamic property Experius\EmailCatcher\Cron\Clean::$connection is deprecated in /Cron/Clean.php on line 49 --- Cron/Clean.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Cron/Clean.php b/Cron/Clean.php index c694859..6cad0db 100644 --- a/Cron/Clean.php +++ b/Cron/Clean.php @@ -27,6 +27,11 @@ class Clean */ protected $resourceConnection; + /** + * @var \Magento\Framework\DB\Adapter\AdapterInterface|null + */ + protected $connection; + /** * @var ScopeConfigInterface */ @@ -50,6 +55,11 @@ public function __construct( $this->scopeConfig = $scopeConfig; } + /** + * Get days to clean + * + * @return int + */ public function getDaysToClean() { $daysToCleanConfig = $this->scopeConfig->getValue(self::CONFIG_DAYS_TO_CLEAN, ScopeInterface::SCOPE_STORE);