Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Serializer] (re)document PRESERVE_EMPTY_OBJECTS#20877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 1 commit intosymfony:6.4from94noni:patch-15
Apr 14, 2025

Conversation

@94noni
Copy link
Contributor

@94noni94noni commentedApr 10, 2025
edited
Loading

👋🏻
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

@javiereguiluzjaviereguiluz changed the base branch from7.2 to6.4April 14, 2025 08:38
@javiereguiluzjaviereguiluz merged commitabc5d28 intosymfony:6.4Apr 14, 2025
3 checks passed
@javiereguiluz
Copy link
Member

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

@94noni94noni deleted the patch-15 branchApril 14, 2025 08:47
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhAwaiting requested review from xabbuh

Assignees

No one assigned

Projects

None yet

Milestone

6.4

Development

Successfully merging this pull request may close these issues.

3 participants

@94noni@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp