diff --git a/lib/classes/text.php b/lib/classes/text.php index b3b3164fc3f..f72b3105419 100644 --- a/lib/classes/text.php +++ b/lib/classes/text.php @@ -75,13 +75,17 @@ class core_text { } /** - * Reset internal textlib caches. - * @static * @deprecated since Moodle 4.0. See MDL-53544. - * @todo To be removed in Moodle 4.4 - MDL-71748 */ - public static function reset_caches() { - debugging("reset_caches() is deprecated. Typo3 has been removed and caches aren't used anymore.", DEBUG_DEVELOPER); + #[\core\attribute\deprecated( + 'core_text::reset_caches', + since: '4.0', + reason:'Typo3 has been removed and caches aren\'t used anymore.', + mdl: 'MDL-53544', + final: true, + )] + public static function reset_caches(): void { + \core\deprecation::emit_deprecation_if_present([self::class, __FUNCTION__]); } /** diff --git a/lib/upgrade.txt b/lib/upgrade.txt index 49ec5e12f8e..aa61077b8f7 100644 --- a/lib/upgrade.txt +++ b/lib/upgrade.txt @@ -1,6 +1,10 @@ This files describes API changes in core libraries and APIs, information provided here is intended especially for developers. +=== 4.5 === + +* Final deprecation and removal of the function core_text::reset_caches(). + === 4.4 === * New modinfo methods related to delegated sections (sections controlled by a component):