Skip to content

Unable to transform RRule to text when it has a WEEKLY frequency and no BYDAY #179

Description

@markpruett571

Hi there!

If you try to parse a rrule with frequency set to WEEKLY and no BYDAY set, it'll give you an error:

PHP Error: Call to a member function format() on null in .../vendor/simshaun/recurr/src/Recurr/Transformer/TextTransformer.php on line 282

Sample code to reproduce the error:
echo (new \Recurr\Transformer\TextTransformer)->transform(new Recurr\Rule('FREQ=WEEKLY'));

This is on version 4.0.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions