1
0
mirror of https://github.com/rlanvin/php-rrule.git synced 2025-02-20 09:54:16 +01:00

Merge pull request #23 from bkosborne/patch-1

Update exception message for UNTIL parse error
This commit is contained in:
Rémi Lanvin 2017-01-22 20:21:52 +00:00 committed by GitHub
commit 5dc05264bb

View File

@ -724,7 +724,7 @@ class RRule implements RRuleInterface
if ( $key === 'UNTIL' ) {
if ( ! preg_match($rfc_date_regexp, $value) ) {
throw new \InvalidArgumentException(
'Invalid DTSTART property: date or date time format incorrect'
'Invalid UNTIL property: date or date time format incorrect'
);
}
switch ( $dtstart_type ) {