1
0
mirror of https://github.com/rlanvin/php-rrule.git synced 2025-02-17 06:54:15 +01:00

More PHP 5.3 compatibility fixes

This commit is contained in:
rlanvin 2015-06-27 14:25:37 +03:00
parent 982357f55a
commit b192c38752

View File

@ -435,7 +435,7 @@ class RRule implements \Iterator, \ArrayAccess
}
}
elseif ( $this->freq < self::HOURLY ) {
$this->byhour = [(int) $this->dtstart->format('G')];
$this->byhour = array((int) $this->dtstart->format('G'));
}
if ( not_empty($parts['BYMINUTE']) ) {
@ -456,7 +456,7 @@ class RRule implements \Iterator, \ArrayAccess
}
}
elseif ( $this->freq < self::MINUTELY ) {
$this->byminute = [(int) $this->dtstart->format('i')];
$this->byminute = array((int) $this->dtstart->format('i'));
}
if ( not_empty($parts['BYSECOND']) ) {
@ -477,7 +477,7 @@ class RRule implements \Iterator, \ArrayAccess
}
}
elseif ( $this->freq < self::SECONDLY ) {
$this->bysecond = [(int) $this->dtstart->format('s')];
$this->bysecond = array((int) $this->dtstart->format('s'));
}
if ( $this->freq < self::HOURLY ) {