NOBUG: Add upgrade notes
This commit is contained in:
@@ -15,6 +15,14 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt
|
||||
- The `\core\attribute\deprecated` attribute constructor `$replacement` parameter now defaults to null, and can be omitted
|
||||
|
||||
For more information see [MDL-84531](https://tracker.moodle.org/browse/MDL-84531)
|
||||
- Added a new `\core\deprecation::emit_deprecation()` method which should be used in places where a deprecation is known to occur. This method will throw debugging if no deprecation notice was found, for example:
|
||||
```php
|
||||
public function deprecated_method(): void {
|
||||
\core\deprecation::emit_deprecation([self::class, __FUNCTION__]);
|
||||
}
|
||||
```
|
||||
|
||||
For more information see [MDL-85897](https://tracker.moodle.org/browse/MDL-85897)
|
||||
|
||||
### core_message
|
||||
|
||||
|
||||
@@ -7,6 +7,14 @@
|
||||
- The `\core\attribute\deprecated` attribute constructor `$replacement` parameter now defaults to null, and can be omitted
|
||||
|
||||
For more information see [MDL-84531](https://tracker.moodle.org/browse/MDL-84531)
|
||||
- Added a new `\core\deprecation::emit_deprecation()` method which should be used in places where a deprecation is known to occur. This method will throw debugging if no deprecation notice was found, for example:
|
||||
```php
|
||||
public function deprecated_method(): void {
|
||||
\core\deprecation::emit_deprecation([self::class, __FUNCTION__]);
|
||||
}
|
||||
```
|
||||
|
||||
For more information see [MDL-85897](https://tracker.moodle.org/browse/MDL-85897)
|
||||
|
||||
## 4.5.5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user