We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 684e35e + 55cb62c commit 0961a0aCopy full SHA for 0961a0a
1 file changed
lib/Recur/RRuleIterator.php
@@ -806,7 +806,7 @@ protected function parseRRule($rrule): void
806
case 'BYDAY':
807
$value = (array) $value;
808
foreach ($value as $part) {
809
- if (!preg_match('#^ (-|\+)? ([1-5])? (MO|TU|WE|TH|FR|SA|SU) $# xi', (string) $part)) {
+ if (!preg_match('#^ (-|\+)? ([1-5])? (MO|TU|WE|TH|FR|SA|SU) $#xi', (string) $part)) {
810
throw new InvalidDataException('Invalid part in BYDAY clause: '.$part);
811
}
812
@@ -946,7 +946,7 @@ protected function getMonthlyOccurrences(): array
946
$byMonthDayResults[] = $monthDay;
947
} else {
948
// Negative values
949
- $byMonthDayResults[] = $startDate->format('t') + 1 + $monthDay;
+ $byMonthDayResults[] = (int) $startDate->format('t') + 1 + $monthDay;
950
951
952
0 commit comments