Skip to content

[VarDumper] Fix dumping jsons casted as arrays #19368

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

Merged
merged 1 commit into from
Jul 17, 2016

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #19356
License MIT
Doc PR -

}
[1]=>
array(1) {
["1"]=>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the important line: "1" instead of a plain 1. Only json_decode() can create these.

@nicolas-grekas nicolas-grekas force-pushed the fix-19356-jsoncast branch 3 times, most recently from 4b283fc to a6906cc Compare July 16, 2016 13:12
@nicolas-grekas
Copy link
Member Author

nicolas-grekas commented Jul 16, 2016

Ready, with a bunch of really weird edge cases fixed when casting from array to object and vice versa.
appveyor failure unrelated

@nicolas-grekas nicolas-grekas merged commit 56549e7 into symfony:2.7 Jul 17, 2016
nicolas-grekas added a commit that referenced this pull request Jul 17, 2016
…ekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[VarDumper] Fix dumping jsons casted as arrays

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #19356
| License       | MIT
| Doc PR        | -

Commits
-------

56549e7 [VarDumper] Fix dumping jsons casted as arrays
@nicolas-grekas nicolas-grekas deleted the fix-19356-jsoncast branch July 17, 2016 09:07
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