From 3aa9a1dc0166e03056e541f4990cb18f286793ab Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 26 Jul 2023 10:22:42 +0200 Subject: [PATCH] Update BC notes --- UPGRADING.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UPGRADING.md b/UPGRADING.md index 01f1a67dd..2fb773dc2 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -1,6 +1,8 @@ # Upgrading from Psalm 5 to Psalm 6 ## Changed +- The minimum PHP version was raised to PHP 8.1.17. + - [BC] Switched the internal representation of `list` and `non-empty-list` from the TList and TNonEmptyList classes to an unsealed list shape: the TList, TNonEmptyList and TCallableList classes were removed. Nothing will change for users: the `list` and `non-empty-list` syntax will remain supported and its semantics unchanged. Psalm 5 already deprecates the `TList`, `TNonEmptyList` and `TCallableList` classes: use `\Psalm\Type::getListAtomic`, `\Psalm\Type::getNonEmptyListAtomic` and `\Psalm\Type::getCallableListAtomic` to instantiate list atomics, or directly instantiate TKeyedArray objects with `is_list=true` where appropriate. @@ -9,6 +11,8 @@ - [BC] The `TDependentListKey` type was removed and replaced with an optional property of the `TIntRange` type. +- [BC] The return type of `Psalm\Internal\LanguageServer\ProtocolWriter#write() changed from `Amp\Promise` to `void` due to the switch to Amp v3 + # Upgrading from Psalm 4 to Psalm 5 ## Changed