From d298365e99e838dc17d981bd49687d0c9f931a6b Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Fri, 22 Mar 2024 15:07:40 +0100 Subject: [PATCH] fix reference to deprecated attribute The deprecated attribute is located at \core\attribute. Signed-off-by: Daniel Ziegenberg --- general/development/policies/deprecation/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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__]); }