Fix types with annotations [MAILPOET-2488]

This commit is contained in:
wxa
2019-12-26 18:07:52 +03:00
committed by amine-mp
parent bd1a84c5c3
commit 09a1411c81
18 changed files with 36 additions and 20 deletions

View File

@@ -55,6 +55,7 @@ class SimpleWorkerTest extends \MailPoetTest {
public function testItCalculatesNextRunDateWithinNextWeekBoundaries() {
$current_date = Carbon::createFromTimestamp(WPFunctions::get()->currentTime('timestamp'));
/** @var Carbon $next_run_date */
$next_run_date = (new MockSimpleWorker())->getNextRunDate();
$difference = $next_run_date->diffInDays($current_date);
// Subtract days left in the current week