Skip to content

2.0.0

Latest

Choose a tag to compare

@dbu dbu released this 01 Dec 13:43
· 0 commits to 1.x since this release
2.0.0
  • Removed PropertyTypeArray, which is superseeded by PropertyTypeIterable.
  • Removed the deprecated PropertyTypeIterable::getCollectionClass. Use PropertyTypeIterable::getTraversableClass
  • Removed the deprecated PropertyTypeIterable::isCollection. Use PropertyTypeIterable::isTraversable
  • JMSTypeParser::getTraversableClass returns Traversable::class instead of Doctrine\Common\Collections\Collection for general traversable properties.
  • Dropped support for PHP 7
  • Adjusted code to not trigger warnings with PHP 8.4
  • Removed deprecated getDeserializeFormat method from date time
  • Use Attribute instead of Annotation
    • Replaced Liip\MetadataParser\ModelParser\LiipMetadataAnnotationParser with Liip\MetadataParser\ModelParser\LiipMetadataAttributeParser
    • Replaced @Preferred annotation with the #[Preferred] attribute
  • Replaced PropertyCollection::useIdenticalNamingStrategy static method with the PropertyNamingStrategyInterface.
    If you need to change the property naming strategy, remove the call to the static method and instead pass a strategy instance to the parser.
    The library provides two implementations for the property naming strategy:
    • IdenticalPropertyNamingStrategy
    • SnakeCasePropertyNamingStrategy (default).
  • Add support for (union) discriminators and their related JMS attributes #[UnionDiscriminator] and #[Discriminator]