MDL-85897 core: Move all deprecations to emit_deprecation

This commit is contained in:
Andrew Nicols
2025-07-30 13:53:27 +08:00
parent 18586a863d
commit bf18273a08
98 changed files with 259 additions and 259 deletions
+2 -2
View File
@@ -111,7 +111,7 @@ abstract class base_controller extends backup implements loggable {
*/
#[\core\attribute\deprecated(since: '4.1', mdl: 'MDL-74548', final: true)]
public function set_copy(): void {
\core\deprecation::emit_deprecation_if_present([self::class, __FUNCTION__]);
\core\deprecation::emit_deprecation([self::class, __FUNCTION__]);
}
/**
@@ -119,6 +119,6 @@ abstract class base_controller extends backup implements loggable {
*/
#[\core\attribute\deprecated('restore_controller::get_copy()', since: '4.1', mdl: 'MDL-74548', final: true)]
public function get_copy() {
\core\deprecation::emit_deprecation_if_present([self::class, __FUNCTION__]);
\core\deprecation::emit_deprecation([self::class, __FUNCTION__]);
}
}