Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi authored and dragonmantank committed Oct 13, 2020
1 parent 40dbc60 commit 08c6de9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cron/DayOfWeekField.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ public function isSatisfiedBy(DateTimeInterface $date, $value)

// Find out if this is the last specific weekday of the month
if (strpos($value, 'L')) {
$weekday = $this->convertLiterals(substr($value, 0, strpos($value, 'L')));
$weekday = str_replace('7', '0', $weekday);
$weekday = (int) $this->convertLiterals(substr($value, 0, strpos($value, 'L')));
$weekday %= 7;

$tdate = clone $date;
$tdate = $tdate->setDate($currentYear, $currentMonth, $lastDayOfMonth);
Expand Down

0 comments on commit 08c6de9

Please sign in to comment.