schmittjoh / serializer

Library for (de-)serializing data of any complexity (supports JSON, and XML)
http://jmsyst.com/libs/serializer
MIT License
2.32k stars 588 forks source link

Allow missing attributes in serialized objects #1526

Closed boesing closed 10 months ago

boesing commented 10 months ago
Q A
Bug fix? yes
Tests pass? yes
Fixed tickets #1525
License MIT

Fixes #1525 which points to some kind of BC break in v3.28.0 regarding missing attributes.

boesing commented 10 months ago

I hope I managed the phpstan configuration part correctly but from how I understand that issue, the changes should solve that problem.

I also added missing annotation to the fixture so that both metadata parser can extract the VirtualProperty from a method which has a non-existent attribute. Thats why we now have both annotation and attribute VirtualProperty in the fixture.

scyzoryck commented 10 months ago

Thanks for contribution! :) I will release it on the beginning of the next week.