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

Investigate in_array usage

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.11
    • Fix Version/s: None
    • Component/s: General
    • Labels:

      Description

      Investigate the usages and results of in_array in currently supported php versions.

      During a review of MDL-70967, it was identified that in_array throws up false +ves/-ves. It was suggested to review it's usages and confirm there are no hidden cases where this is failing and not being picked up. Refer to this comment

      Note: I've only included enrolments and 3.11 but this should be a core-wide check.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              peterdias Peter Dias
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: