From efe9c2bc6d55f532b69c63324e35dd98f8139dfd Mon Sep 17 00:00:00 2001 From: orklah Date: Wed, 26 Jan 2022 19:37:10 +0100 Subject: [PATCH] document some BC breaks introduced in #7409 --- UPGRADING.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UPGRADING.md b/UPGRADING.md index 02fe6e60911..9ebfe64fd75 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -148,6 +148,10 @@ - `Psalm\Plugin\EventHandler\Event\PropertyTypeProviderEvent` - `Psalm\Plugin\EventHandler\Event\PropertyVisibilityProviderEvent` - `Psalm\Plugin\EventHandler\Event\StringInterpreterEvent` +- [BC] Atomic::__toString() used to return a string representation of the type that was using double quotes (") to quote literals. This is now using simple quotes (') to be more aligned with the rest of the codebase. +- [BC] Atomic::__toString() is now final +- [BC] Atomic::__toString() now returns a more detailed version of the type (it calls getId() under the hood) +- [BC] Atomic::getId() has now a first param $exact. Calling the method with false will return a less detailed version of the type in some cases (similarly to what __toString used to return) ## Removed - [BC] Property `Psalm\Codebase::$php_major_version` was removed, use