Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Serializer] XmlEncoder: don't cast padded strings #32438

Merged
merged 1 commit into from Jul 18, 2019
Merged

[Serializer] XmlEncoder: don't cast padded strings #32438

merged 1 commit into from Jul 18, 2019

Conversation

ogizanagi
Copy link
Member

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #23122 (comment)
License MIT
Doc PR N/A

This was a suggestion of @nicolas-grekas in #23122. Which seems to have been forgotten.

But shouldn't we also avoid casting something like .18, +18, -18?

@ogizanagi ogizanagi added this to the 3.4 milestone Jul 8, 2019
@fabpot
Copy link
Member

fabpot commented Jul 18, 2019

Thank you @ogizanagi.

@fabpot fabpot merged commit c1bfaa1 into symfony:3.4 Jul 18, 2019
fabpot added a commit that referenced this pull request Jul 18, 2019
…agi)

This PR was merged into the 3.4 branch.

Discussion
----------

[Serializer] XmlEncoder: don't cast padded strings

| Q             | A
| ------------- | ---
| Branch?       | 3.4 <!-- see below -->
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #23122 (comment)   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | N/A

This was a suggestion of @nicolas-grekas in #23122. Which seems to have been forgotten.

But shouldn't we also avoid casting something like `.18`, `+18`, `-18`?

Commits
-------

c1bfaa1 [Serializer] XmlEncoder: don't cast padded strings
@ogizanagi ogizanagi deleted the fix/serializer/no_padded_strings_cast branch July 18, 2019 08:19
This was referenced Jul 27, 2019
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.

None yet

4 participants