You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$diff = $dt->diff($start);
$start = $diff->days;
$set = array();
for ($i = $start, $k = 0; $k < 7; $k++) {
$set[] = $i;
++$i; // Increment on type bool has no effect, this will change in the next major version of PHPif (null !== $dtInfo && null !== $rule && $dtInfo->wDayMask[$i] == $rule->getWeekStartAsNum()) {
break;
}
}
The text was updated successfully, but these errors were encountered:
Sometimes
$diff->days
value returns a boolean which causes an exception error on line 126 because it's trying to increment a boolean.https://github.com/simshaun/recurr/blob/master/src/Recurr/DateUtil.php#L122
The text was updated successfully, but these errors were encountered: