You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
⚠️ Breaking changes
Dropped Symfony 6 support.symfony/property-info and symfony/property-access now require ^7.3 || ^8.0.
Added symfony/type-info as a required dependency — the encoder was migrated from the legacy type resolution to symfony/type-info.
The supported PHP range is now open-ended (^8.2), covering PHP 8.5.
✨ Features
Native PHP 8 attribute syntax for the property markers: #[XmlAttribute], #[XmlNodeValue], #[XmlCDataSection] — usable interchangeably with the existing Doctrine docblock annotations (@XmlAttribute, …).
🐛 Fixes
Correctly encode collections whose value type is a union of object types (and mixed scalar/object unions) by routing each entry on its runtime value instead of the static union type.
⚡ Performance
Memoize the resolved property markers per class property and cache the Doctrine annotation reader across property checks, eliminating redundant reflection and docblock parsing.