We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symfony version(s) affected: 4.4.4
Description
How to reproduce
<?php require __DIR__ . '/vendor/autoload.php'; $data = [ 'item' => [ '@attr' => null, ], ]; $encoder = new \Symfony\Component\Serializer\Encoder\XmlEncoder('some-context'); echo $encoder->encode($data, 'xml', ['xml_format_output' => true]);
Possible Solution Add a null check here
The text was updated successfully, but these errors were encountered:
bug #35846 [Serializer] prevent method calls on null values (xabbuh)
7295d25
This PR was merged into the 3.4 branch. Discussion ---------- [Serializer] prevent method calls on null values | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #35824 | License | MIT | Doc PR | Commits ------- 847d6dc prevent method calls on null values
No branches or pull requests
Symfony version(s) affected: 4.4.4
Description
How to reproduce
Possible Solution
Add a null check here
The text was updated successfully, but these errors were encountered: