diff --git a/general/development/policies/deprecation/index.md b/general/development/policies/deprecation/index.md index 9a9ac184d3..fa6d775555 100644 --- a/general/development/policies/deprecation/index.md +++ b/general/development/policies/deprecation/index.md @@ -62,7 +62,7 @@ debugging('foobar() is deprecated. Please use foobar::blah() instead.', DEBUG_DE ```php -#[\core\deprecated('foobar::blahv()', since: '4.4', mdl: 'MDL-XXXXX')] +#[\core\attribute\deprecated('foobar::blahv()', since: '4.4', mdl: 'MDL-XXXXX')] public function foobar(): void { \core\deprecation::emit_deprecation_if_present([self, __FUNCTION__]); } @@ -118,7 +118,7 @@ throw new coding_exception( ```php -#[\core\deprecated('foobar::blah()', since: '4.4', mdl: 'MDL-XXXXX', final: true)] +#[\core\attribute\deprecated('foobar::blah()', since: '4.4', mdl: 'MDL-XXXXX', final: true)] public function foobar(): void { \core\deprecation::emit_deprecation_if_present([self, __FUNCTION__]); }