-
Bug
-
Resolution: Fixed
-
Minor
-
3.0
-
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
- has been marked as being related by
-
CONTRIB-7165 Codechecker complains about type-hinting in foreach loops
- Closed