Skip to content

Commit

Permalink
document some BC breaks introduced in #7409
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Jan 26, 2022
1 parent bf22dcf commit efe9c2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UPGRADING.md
Expand Up @@ -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.

This comment has been minimized.

Copy link
@AndrolGenhald

AndrolGenhald Jan 26, 2022

Collaborator

"simple" -> "single"

This comment has been minimized.

Copy link
@orklah

orklah Jan 26, 2022

Author Collaborator

:o Github Copilot betrayed me!

- [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
Expand Down

0 comments on commit efe9c2b

Please sign in to comment.