Skip to content

Commit

Permalink
fix reference to deprecated attribute
Browse files Browse the repository at this point in the history
The deprecated attribute is located at \core\attribute.

Signed-off-by: Daniel Ziegenberg <[email protected]>
  • Loading branch information
ziegenberg committed Mar 22, 2024
1 parent 23c6c2f commit d298365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions general/development/policies/deprecation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ debugging('foobar() is deprecated. Please use foobar::blah() instead.', DEBUG_DE
<TabItem value="core_deprecation" label="Using the \core\deprecation API from Moodle 4.4">

```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__]);
}
Expand Down Expand Up @@ -118,7 +118,7 @@ throw new coding_exception(
<TabItem value="core_deprecation" label="Using the \core\deprecation API from Moodle 4.4">

```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__]);
}
Expand Down

0 comments on commit d298365

Please sign in to comment.