Skip to content

Commit 81c5b91

Browse files
committed
minor symfony#58893 [TypeInfo] add BC breaking TypeInfo changes to upgrade file (xabbuh)
This PR was merged into the 7.2 branch. Discussion ---------- [TypeInfo] add BC breaking TypeInfo changes to upgrade file | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 512f226 add BC breaking TypeInfo changes to upgrade file
2 parents ba44b1a + 512f226 commit 81c5b91

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)