8000 add BC breaking TypeInfo changes to upgrade file · symfony/symfony@512f226 · GitHub
[go: up one dir, main page]

Skip to content

Commit 512f226

Browse files
committed
add BC breaking TypeInfo changes to upgrade file
1 parent 75da5aa commit 512f226

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

UPGRADE-7.2.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,15 @@ TwigBridge
112112

113113
* Deprecate passing a tag to the constructor of `FormThemeNode`
114114

115+
TypeInfo
116+
--------
117+
118+
* Rename `Type::isA()` to `Type::isIdentifiedBy()` and `Type::is()` to `Type::isSatisfiedBy()`
119+
* Remove `Type::__call()`
120+
* Remove `Type::getBaseType()`, use `WrappingTypeInterface::getWrappedType()` instead
121+
* Remove `Type::asNonNullable()`, use `NullableType::getWrappedType()` instead
122+
* Remove `CompositeTypeTrait`
123+
115124
Webhook
116125
-------
117126

src/Symfony/Component/TypeInfo/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ CHANGELOG
99
* Add `WrappingTypeInterface` and `CompositeTypeInterface` type interfaces
1010
* Add `NullableType` type class
1111
* Rename `Type::isA()` to `Type::isIdentifiedBy()` and `Type::is()` to `Type::isSatisfiedBy()`
12-
* Remove `Type::getBaseType()`, `Type::asNonNullable()` and `Type::__call()` methods
12+
* Remove `Type::__call()`
13+
* Remove `Type::getBaseType()`, use `WrappingTypeInterface::getWrappedType()` instead
14+
* Remove `Type::asNonNullable()`, use `NullableType::getWrappedType()` instead
1315
* Remove `CompositeTypeTrait`
1416
* Add `PhpDocAwareReflectionTypeResolver` resolver
1517
* The type resolvers are not marked as `@internal` anymore

0 commit comments

Comments
 (0)
0