Make static methods in cron workers non-static
[MAILPOET-2538]
This commit is contained in:
committed by
Jack Kitterhing
parent
ba41f4901e
commit
cd93940940
@@ -152,7 +152,7 @@ class AutomatedEmails extends SimpleWorker {
|
||||
return $context;
|
||||
}
|
||||
|
||||
static function getNextRunDate() {
|
||||
function getNextRunDate() {
|
||||
$wp = new WPFunctions;
|
||||
$date = Carbon::createFromTimestamp($wp->currentTime('timestamp'));
|
||||
return $date->endOfMonth()->next(Carbon::MONDAY)->midDay();
|
||||
|
Reference in New Issue
Block a user