From: Tim Düsterhus Date: Wed, 26 Oct 2022 12:22:16 +0000 (+0200) Subject: Document the `AbstractIntegerCondition` changes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=374dffaf8debe00ad7169684b0179327f572e0a5;p=GitHub%2FWoltLab%2Fwoltlab.github.io.git Document the `AbstractIntegerCondition` changes --- diff --git a/docs/migration/wsc55/php.md b/docs/migration/wsc55/php.md index 4b78c2e5..80a9a7a3 100644 --- a/docs/migration/wsc55/php.md +++ b/docs/migration/wsc55/php.md @@ -111,3 +111,13 @@ function checkPassword( ``` See the [PHP RFC: Redacting parameters in back traces](https://wiki.php.net/rfc/redact_parameters_in_back_traces) for more details. + +## Conditions + +### AbstractIntegerCondition + +Deriving from `AbstractIntegerCondition` now requires to explicitly implement `protected function getIdentifier(): string`, instead of setting the `$identifier` property. +This is to ensure that all conditions specify a unique identifier, instead of accidentally relying on a default value. +The `$identifier` property will no longer be used and may be removed. + +See [WoltLab/WCF#5077](https://github.com/WoltLab/WCF/pull/5077) for details.