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

Extend allowed type hinting of vars to list() assignments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.3
    • 3.0
    • Local: Code checker
    • None
    • MOODLE_30_STABLE
    • MOODLE_30_STABLE

      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

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

              Created:
              Updated:
              Resolved:

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