-
Task
-
Resolution: Fixed
-
Minor
-
3.11, 4.0, 4.1
-
MOODLE_311_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
-
MOODLE_401_STABLE
-
MDL-71062-master -
-
3
-
QA time 2, 4.1 holding pattern, 4.1 deprecations and cleaning
In MDL-69936 it was agreed to deprecate print_error() and switch to throw moodle_exception() instead.
This issue is about to proceed with such deprecation in core. Should cover the following aspects:
- Decide the target for the deprecation (3.11 or 4.0).
- Comment about the outcome @ codechecker #137(https://github.com/moodlehq/moodle-local_codechecker/issues/137) , so the deprecation warning can be created then.
- Apply the standard deprecation policy (debugging, move to deprecatedlib...).
- Remove all uses from core.
- Create the phase2 deprecation (final removal) issue, scheduled for the standard 2 years, but with a explicit call about to re-evaluate the situation in plugins when that time arrives. If there are many plugins still using print_error() we may need to delay the removal.
- Also comment about the outcome @ codechecker #137(https://github.com/moodlehq/moodle-local_codechecker/issues/137) once the final removal happens (so the function is moved from the Deprecation Sniff to the Forbidden one).
Ciao