SortDirection enum not found on older Laravel versions

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.8.1
    • Affects Version/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As reported in https://github.com/mongodb/laravel-mongodb/issues/3518, on PHP and Laravel versions without a SortDirection enum, the logic currently fails as the match statement tries to resolve an enum case unconditionally.

              Assignee:
              Andreas Braun
              Reporter:
              Andreas Braun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: