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

PHP 8.2: ksort(...) - Reports

XMLWordPrintable

    • 1
    • Team Hedgehog 2023 Sprint 1.4
    • Small

      Based on an Audit of the code, this component has the following uses of ksort without an explicit sort order which means SORT_REGULAR is applied by default and this sort behavior changes in PHP 8.2.
      See: https://php.watch/versions/8.2/ksort-SORT_REGULAR-order-changes

      Instances:

      • ./report/insights/classes/output/insights_list.php:                    ksort($predictionvalues);
      • ./report/eventlist/classes/filter_form.php:        core_collator::ksort($result);
      • ./report/stats/locallib.php:            ksort($data[$roleid]);

            stevani.andolo@moodle.com Stevani Andolo
            matt.porritt@moodle.com Matt Porritt
            Raquel Ortega Raquel Ortega
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 10 minutes
                1h 10m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.