Skip to content

Commit d298365

Browse files
committed
fix reference to deprecated attribute
The deprecated attribute is located at \core\attribute. Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
1 parent 23c6c2f commit d298365

File tree

1 file changed

+2
-2
lines changed
  • general/development/policies/deprecation

1 file changed

+2
-2
lines changed

general/development/policies/deprecation/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ debugging('foobar() is deprecated. Please use foobar::blah() instead.', DEBUG_DE
6262
<TabItem value="core_deprecation" label="Using the \core\deprecation API from Moodle 4.4">
6363

6464
```php
65-
#[\core\deprecated('foobar::blahv()', since: '4.4', mdl: 'MDL-XXXXX')]
65+
#[\core\attribute\deprecated('foobar::blahv()', since: '4.4', mdl: 'MDL-XXXXX')]
6666
public function foobar(): void {
6767
\core\deprecation::emit_deprecation_if_present([self, __FUNCTION__]);
6868
}
@@ -118,7 +118,7 @@ throw new coding_exception(
118118
<TabItem value="core_deprecation" label="Using the \core\deprecation API from Moodle 4.4">
119119

120120
```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)]
122122
public function foobar(): void {
123123
\core\deprecation::emit_deprecation_if_present([self, __FUNCTION__]);
124124
}

0 commit comments

Comments
 (0)