Skip to content

[Serializer] Fix that it will never reach DOMNode#37701

Merged
fabpot merged 1 commit intosymfony:3.4from
TNAJanssen:patch-1
Aug 4, 2020
Merged

[Serializer] Fix that it will never reach DOMNode#37701
fabpot merged 1 commit intosymfony:3.4from
TNAJanssen:patch-1

Conversation

@TNAJanssen
Copy link
Copy Markdown
Contributor

@TNAJanssen TNAJanssen commented Jul 29, 2020

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
License MIT
Doc PR

When providing the DOMNode object, the is_object check will return true. This way it will never reach the DOMNode check.

So i moved this check to above the is_object check.

@nicolas-grekas
Copy link
Copy Markdown
Member

Could you please add a test case?

@TNAJanssen
Copy link
Copy Markdown
Contributor Author

Sure, will do that on monday:)

@fabpot
Copy link
Copy Markdown
Member

fabpot commented Aug 4, 2020

Thank you @TNAJanssen.

@fabpot fabpot merged commit 995d784 into symfony:3.4 Aug 4, 2020
This was referenced Aug 31, 2020
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.

5 participants