File tree 1 file changed +2
-2
lines changed
general/development/policies/deprecation
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ debugging('foobar() is deprecated. Please use foobar::blah() instead.', DEBUG_DE
62
62
<TabItem value =" core_deprecation " label =" Using the \core\deprecation API from Moodle 4.4 " >
63
63
64
64
``` php
65
- #[\core\deprecated('foobar::blahv()', since: '4.4', mdl: 'MDL-XXXXX')]
65
+ #[\core\attribute\ deprecated('foobar::blahv()', since: '4.4', mdl: 'MDL-XXXXX')]
66
66
public function foobar(): void {
67
67
\core\deprecation::emit_deprecation_if_present([self, __FUNCTION__]);
68
68
}
@@ -118,7 +118,7 @@ throw new coding_exception(
118
118
<TabItem value =" core_deprecation " label =" Using the \core\deprecation API from Moodle 4.4 " >
119
119
120
120
``` php
121
- #[\core\deprecated('foobar::blah()', since: '4.4', mdl: 'MDL-XXXXX', final: true)]
121
+ #[\core\attribute\ deprecated('foobar::blah()', since: '4.4', mdl: 'MDL-XXXXX', final: true)]
122
122
public function foobar(): void {
123
123
\core\deprecation::emit_deprecation_if_present([self, __FUNCTION__]);
124
124
}
You can’t perform that action at this time.
0 commit comments