From 23ddfd4fe109211ac8bc601cbb6234f2e55adcf4 Mon Sep 17 00:00:00 2001 From: robchett Date: Sun, 17 Sep 2023 12:57:04 +0100 Subject: [PATCH] Add note to UPGRADING.md about ignoreInternalFunction(False|Null)Return defaulting to false --- UPGRADING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UPGRADING.md b/UPGRADING.md index 82ca1b2ed52..836159cbfc2 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -3,6 +3,8 @@ - The minimum PHP version was raised to PHP 8.1.17. +- [BC] The configuration settings `ignoreInternalFunctionFalseReturn` and `ignoreInternalFunctionNullReturn` are now defaulted to `false` + - [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.