| 1 |
CHANGELOG |
| 2 |
========= |
| 3 |
|
| 4 |
7.4 |
| 5 |
--- |
| 6 |
|
| 7 |
* Add extra type alias support in `TypeContext` and `StringTypeResolver` |
| 8 |
|
| 9 |
7.3 |
| 10 |
--- |
| 11 |
|
| 12 |
* Add `Type::accepts()` method |
| 13 |
* Add the `TypeFactoryTrait::fromValue()`, `TypeFactoryTrait::arrayShape()`, and `TypeFactoryTrait::arrayKey()` methods |
| 14 |
* Deprecate constructing a `CollectionType` instance as a list that is not an array |
| 15 |
* Deprecate the third `$asList` argument of `TypeFactoryTrait::iterable()`, use `TypeFactoryTrait::list()` instead |
| 16 |
* Add type alias support in `TypeContext` and `StringTypeResolver` |
| 17 |
* Add `CollectionType::mergeCollectionValueTypes()` method |
| 18 |
* Add `ArrayShapeType` to represent the exact shape of an array |
| 19 |
* Add `Type::traverse()` method |
| 20 |
|
| 21 |
7.2 |
| 22 |
--- |
| 23 |
|
| 24 |
* Add construction validation for `BackedEnumType`, `CollectionType`, `GenericType`, `IntersectionType`, and `UnionType` |
| 25 |
* Add `TypeIdentifier::isStandalone()`, `TypeIdentifier::isScalar()`, and `TypeIdentifier::isBool()` methods |
| 26 |
* Add `WrappingTypeInterface` and `CompositeTypeInterface` type interfaces |
| 27 |
* Add `NullableType` type class |
| 28 |
* Rename `Type::isA()` to `Type::isIdentifiedBy()` and `Type::is()` to `Type::isSatisfiedBy()` |
| 29 |
* Remove `Type::__call()` |
| 30 |
* Remove `Type::getBaseType()`, use `WrappingTypeInterface::getWrappedType()` instead |
| 31 |
* Remove `Type::asNonNullable()`, use `NullableType::getWrappedType()` instead |
| 32 |
* Remove `CompositeTypeTrait` |
| 33 |
* Add `PhpDocAwareReflectionTypeResolver` resolver |
| 34 |
* The type resolvers are not marked as `@internal` anymore |
| 35 |
* The component is not marked as `@experimental` anymore |
| 36 |
|
| 37 |
7.1 |
| 38 |
--- |
| 39 |
|
| 40 |
* Add the component as experimental |