Closed yalagin closed 3 years ago
well, I took a look at why it's serializing an array. it's because of https://github.com/symfony/symfony/issues/37061 and https://github.com/symfony/symfony/pull/37049
@yalagin thank you for reporting. I'm closing it since it's Symfony issue
there is an inconsistency of returning types when translation is empty it's returning array instead of object
no translations
there are translations
maybe it's should return {} or null if there are no translations