Upgrade PHPStan level to 5

[MAILPOET-1915]
This commit is contained in:
Pavel Dohnal
2019-03-20 16:16:59 +01:00
committed by M. Shull
parent 21766421d5
commit f3f769316a
9 changed files with 16 additions and 15 deletions

View File

@@ -116,7 +116,7 @@ abstract class SimpleWorker {
$wp = new WPFunctions();
$date = Carbon::createFromTimestamp($wp->currentTime('timestamp'));
// Random day of the next week
$date->setISODate($date->format('o'), ((int)$date->format('W')) + 1, mt_rand(1, 7));
$date->setISODate((int)$date->format('o'), ((int)$date->format('W')) + 1, mt_rand(1, 7));
$date->startOfDay();
return $date;
}