Skip to content

Conversation

94noni
Copy link
Contributor

@94noni 94noni commented Apr 10, 2025

👋🏻
when implementing a web hook, I had to serialize en empty array as object, and found it was wrong (empty list not empty object)

// json without flag
'data' => [],
"data":[],

// json with flag
'data' => new \ArrayObject(),
"data":{},

this PR (re)adds this feature as I thinks its useful to have it directly showcased in the main doc
weirdly it was present in v5.4 #16977

@javiereguiluz javiereguiluz changed the base branch from 7.2 to 6.4 April 14, 2025 08:38
@javiereguiluz javiereguiluz requested a review from xabbuh as a code owner April 14, 2025 08:38
@javiereguiluz javiereguiluz merged commit abc5d28 into symfony:6.4 Apr 14, 2025
3 checks passed
@javiereguiluz
Copy link
Member

Thanks Antoine! We merged this in 6.4 branch and up.

@94noni 94noni deleted the patch-15 branch April 14, 2025 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants