SortDirection enum not found on older Laravel versions

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • laravel-5.8.1
    • Affects Version/s: laravel-5.8.0
    • Component/s: Laravel
    • None
    • None
    • PHP Drivers
    • Not Needed
    • 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: