-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.7
-
MOODLE_400_STABLE
-
MOODLE_401_STABLE, MOODLE_402_STABLE
-
MDL-77988-401 -
As discussed with stronk7, hence creating this issue
This block is effectively:
if (true and void)
|
return
|
Example: https://3v4l.org/JDJoY (same behaviour if substituting && for and)
This conditional can never pass, which means the remainder of the method is always executed
Discovered during the adventure of MDL-77927