Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate against unknown RRULE properties. #186

Open
mtvbrianking opened this issue Mar 30, 2021 · 0 comments
Open

Validate against unknown RRULE properties. #186

mtvbrianking opened this issue Mar 30, 2021 · 0 comments

Comments

@mtvbrianking
Copy link

Current behavior

If an invalid property is included in the RRULE string, it will be ignored on the creation of the RRULE object.

$rule = new \Recurr\Rule('FREQ=MONTHLY;BYDAY=-1FR;COUNT=10;SKIP=5');

The above works properly

Desired behavior

$rule = new \Recurr\Rule('FREQ=MONTHLY;BYDAY=-1FR;COUNT=10;SKIP=5');

Exception:

Recurr\Exception\InvalidRRule with message 'Unknown RRULE property: SKIP

Why?

If you rely on storing RRULE string in your database and recreating them in PHP and JS then the same rule will pass for PHP using this package but fail in JS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant