Skip to content

Commit

Permalink
[BUGFIX][#67][NEND-744] PHP Deprecated: Creation of dynamic property …
Browse files Browse the repository at this point in the history
…Experius\EmailCatcher\Cron\Clean::$connection is deprecated in /Cron/Clean.php on line 49
  • Loading branch information
borisvankatwijk committed Aug 23, 2023
1 parent f484aac commit 2e84e74
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cron/Clean.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ class Clean
*/
protected $resourceConnection;

/**
* @var \Magento\Framework\DB\Adapter\AdapterInterface|null
*/
protected $connection;

/**
* @var ScopeConfigInterface
*/
Expand All @@ -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);
Expand Down

0 comments on commit 2e84e74

Please sign in to comment.