schmittjoh / serializer

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

Update JsonSerializationVisitor.php - Make 'skipWhenEmpty' work with all types not just \ArrayObject or array, using empty(..) to decide skipping attribute. #1550

Closed msklenica closed 2 months ago

msklenica commented 3 months ago

Make 'skipWhenEmpty' work with all types not just \ArrayObject or array, using empty(..) to decide skipping attribute.

Q A
Bug fix? no
New feature? no
Doc updated no
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets
License MIT