From b192c38752623a116f74e651d424fbf690d3a6d5 Mon Sep 17 00:00:00 2001 From: rlanvin Date: Sat, 27 Jun 2015 14:25:37 +0300 Subject: [PATCH] More PHP 5.3 compatibility fixes --- src/RRule.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/RRule.php b/src/RRule.php index 399656e..e62e5ae 100755 --- a/src/RRule.php +++ b/src/RRule.php @@ -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 ) {