More functions without type hinting found and fixt

Use PECL yaml (else Spyc)
Upgrade Spyc (with removed dump code)
This commit is contained in:
djmaze 2020-04-03 11:32:07 +02:00
parent cd3d8b94b2
commit 75b4b64118
43 changed files with 893 additions and 1482 deletions

View file

@ -776,7 +776,7 @@ class RecurrenceIterator implements \Iterator {
if ($this->byHour) {
if ($this->currentDate->format('G') == '23') {
// to obey the interval rule
$this->currentDate->modify('+' . $this->interval-1 . ' days');
$this->currentDate->modify('+' . ($this->interval-1) . ' days');
}
$this->currentDate->modify('+1 hours');
@ -835,7 +835,7 @@ class RecurrenceIterator implements \Iterator {
// We need to roll over to the next week
if ($currentDay === $firstDay && (!$this->byHour || $currentHour == '0')) {
$this->currentDate->modify('+' . $this->interval-1 . ' weeks');
$this->currentDate->modify('+' . ($this->interval-1) . ' weeks');
// We need to go to the first day of this week, but only if we
// are not already on this first day of this week.