From e844c698d2ded12beb743570d8f9f338d3840dae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 19 Sep 2022 13:39:05 +0200 Subject: [PATCH] Document the addition of proper types --- docs/migration/wsc55/php.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/migration/wsc55/php.md b/docs/migration/wsc55/php.md index 5c7e74d1..8563955d 100644 --- a/docs/migration/wsc55/php.md +++ b/docs/migration/wsc55/php.md @@ -11,6 +11,13 @@ The minimum requirements have been increased to the following: It is recommended to make use of the newly introduced features whereever possible. Please refer to the PHP documentation for details. +## Inheritance + +Parameter, return, and property types have been added to methods of various classes/interfaces. +This might cause errors during inheritance, because the types are not compatible with the newly added types in the parent class. + +Return types may already be added in package versions for older WoltLab Suite branches to be forward compatible, because return types are covariant. + ## Package System ### Removal of API compatibility -- 2.20.1