Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-6105

Extend allowed type hinting of vars to list() assignments

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0.3
    • Component/s: Local: Code checker
    • Labels:
      None
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE

      Description

      This is a followup of CONTRIB-6025, where codechecker became instructed to accept both assignment and action type hinting for variables.

      This other case was raised, and after discussion, decided to try to get it also allowed (asuming it's sort of "assignment" and should be that way (without breaking the agreed MDLSITE-2322).

      /** @var cm_info $cm */
      list($course, $cm) = get_course_and_cm_from_cmid($cmid);
      

      That's it. Ciao

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Tester:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              moodle.com, Eloy Lafuente (stronk7)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Mar/16