Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70897

Callbacks for functions usort and uasort can no longer return bool

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.10.1, 3.11, 4.0
    • Fix Version/s: 3.11
    • Component/s: General
    • Labels:

      Description

      PHP 8.0 shows a warning if a callback for usort/uasort returns a bool

      Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero
      

        Attachments

          Activity

            People

            Assignee:
            kabalin Ruslan Kabalin
            Reporter:
            marina Marina Glancy
            Peer reviewer:
            Marina Glancy Marina Glancy
            Integrator:
            Andrew Lyons Andrew Lyons
            Tester:
            CiBoT CiBoT
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/May/21

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 10 minutes
                4h 10m