Skip to content

Commit

Permalink
Merge pull request #930 from ziegenberg/fix-deprecate-attribute
Browse files Browse the repository at this point in the history
fix reference to the `deprecated` attribute
  • Loading branch information
sarjona authored Mar 25, 2024
2 parents 2dc87ba + d298365 commit f60d632
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 f60d632

Please sign in to comment.