mirror of
https://github.com/rlanvin/php-rrule.git
synced 2025-02-21 10:54:14 +01:00
Merge pull request #23 from bkosborne/patch-1
Update exception message for UNTIL parse error
This commit is contained in:
commit
5dc05264bb
@ -724,7 +724,7 @@ class RRule implements RRuleInterface
|
|||||||
if ( $key === 'UNTIL' ) {
|
if ( $key === 'UNTIL' ) {
|
||||||
if ( ! preg_match($rfc_date_regexp, $value) ) {
|
if ( ! preg_match($rfc_date_regexp, $value) ) {
|
||||||
throw new \InvalidArgumentException(
|
throw new \InvalidArgumentException(
|
||||||
'Invalid DTSTART property: date or date time format incorrect'
|
'Invalid UNTIL property: date or date time format incorrect'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
switch ( $dtstart_type ) {
|
switch ( $dtstart_type ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user