Symfony: Deserialize to empty array instead of null

后端 未结 0 1013
终归单人心
终归单人心 2020-12-07 23:05

Is it possible to tell the symfony deserializer to set an empty array instead of null, whenever it finds an empty value and the target type is array?

Example: The fol

相关标签:
回答
  • 消灭零回复
提交回复
热议问题