Fix types by casting [MAILPOET-2488]

This commit is contained in:
wxa
2019-12-26 18:03:32 +03:00
committed by amine-mp
parent c493a43c35
commit bd1a84c5c3
25 changed files with 41 additions and 41 deletions

View File

@@ -58,7 +58,7 @@ class SimpleWorkerTest extends \MailPoetTest {
$next_run_date = (new MockSimpleWorker())->getNextRunDate();
$difference = $next_run_date->diffInDays($current_date);
// Subtract days left in the current week
$difference -= (Carbon::DAYS_PER_WEEK - $current_date->format('N'));
$difference -= (Carbon::DAYS_PER_WEEK - (int)$current_date->format('N'));
expect($difference)->lessOrEquals(7);
expect($difference)->greaterOrEquals(0);
}