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 2181327bf2
commit 63a21837db
39 changed files with 123 additions and 123 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__]);
}
}