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

Extend allowed type hinting of vars to list() assignments

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0
    • 3.0.3
    • Local: Code checker
    • None
    • MOODLE_30_STABLE
    • 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

              stronk7 Eloy Lafuente (stronk7)
              stronk7 Eloy Lafuente (stronk7)
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              moodle.com, Eloy Lafuente (stronk7)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/Mar/16