From fa48bc4fa2fc7ce03254878f927697cc498fa152 Mon Sep 17 00:00:00 2001 From: rlanvin Date: Mon, 15 May 2017 10:14:37 +0100 Subject: [PATCH] Fix typo in variable name Fix #34 --- CHANGELOG.md | 6 +++++- src/RRule.php | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4b0afe..1e5c809 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,12 @@ ## [Unreleased] +## [1.5.1] - 2017-05-15 + ### Fixed - Throw exception when passing a float instead of an int (e.g. INTERVAL=1.5) instead of casting silently +- Variable name typo [#34](https://github.com/rlanvin/php-rrule/issues/34) ## [1.5.0] - 2017-05-07 @@ -119,7 +122,8 @@ - First release, everything before that was unversioned (`dev-master` was used). -[Unreleased]: https://github.com/rlanvin/php-rrule/compare/v1.5.0...HEAD +[Unreleased]: https://github.com/rlanvin/php-rrule/compare/v1.5.1...HEAD +[1.5.1]: https://github.com/rlanvin/php-rrule/compare/v1.5.0...v1.5.1 [1.5.0]: https://github.com/rlanvin/php-rrule/compare/v1.4.2...v1.5.0 [1.4.2]: https://github.com/rlanvin/php-rrule/compare/v1.4.1...v1.4.2 [1.4.1]: https://github.com/rlanvin/php-rrule/compare/v1.4.0...v1.4.1 diff --git a/src/RRule.php b/src/RRule.php index 6c6a809..ebbe075 100755 --- a/src/RRule.php +++ b/src/RRule.php @@ -660,12 +660,13 @@ class RRule implements RRuleInterface static public function parseRfcString($string) { trigger_error('parseRfcString() is deprecated - use new RRule(), RRule::createFromRfcString() or \RRule\RfcParser::parseRRule() if necessary',E_USER_DEPRECATED); - return RfcParser::parseRRule($sring); + return RfcParser::parseRRule($string); } /** * Take a RFC 5545 string and returns either a RRule or a RSet. * + * @param string $string The RFC string * @param bool $force_rset Force a RSet to be returned. * @return RRule|RSet *