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

Some privacy unittests call reset() on object, this is deprecated in PHP8.1

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.11.4, 4.1
    • 4.1
    • Privacy, Unit tests

    Description

        . Calling key(), current(), next(), prev(), reset(), or end() on objects
          is deprecated. Instead cast the object to array first, or make use of
          ArrayIterator.
      

      RFC: https://wiki.php.net/rfc/deprecations_php_8_1

      Attachments

        Activity

          People

            marina Marina Glancy
            marina Marina Glancy
            Huong Nguyen Huong Nguyen
            Jun Pataleta Jun Pataleta
            CiBoT CiBoT
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              14/Nov/22

              Time Tracking

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