8000 fix dumper default representation by jamyouss · Pull Request #6650 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

fix dumper default representation #6650

8000 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

Closed
wants to merge 1 commit into from
Closed

fix dumper default representation #6650

wants to merge 1 commit into from

Conversation

jamyouss
Copy link

Hi,

The default representation of dumper when using Yaml class is expanded:
public static function dump($array, $inline = 2, $indent = 4, $flags = 0)

May be i'm wrong because the $inline argument is different in Yaml (default inline=2 so expanded) and Dumper (default inline=0 so inline) class. So it depend to which class we refer to.

@wouterj
Copy link
Member
wouterj commented Jun 19, 2016

👍 I think you're correct. We decided to only document the static API, so let's also use that in the descriptions as well.

Status: reviewed

/cc @xabbuh we may want to get the argument values in sync in Symfony core?

@xabbuh
Copy link
Member
xabbuh commented Jun 20, 2016

👍

@wouterj Would be nice. But I have no idea how to do that without breaking BC (you could argue that technically the spaces don't matter but people seem to rely on it).

@xabbuh
Copy link
Member
xabbuh commented Jun 20, 2016

Thank you @jamyouss.

xabbuh added a commit that referenced this pull request Jun 20, 2016
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #6650).

Discussion
----------

fix dumper default representation

Hi,

The default representation of dumper when using `Yaml` class is expanded:
`public static function dump($array, $inline = 2, $indent = 4, $flags = 0)`

May be i'm wrong because the `$inline` argument is different in `Yaml` (default inline=2 so expanded) and `Dumper` (default inline=0 so inline) class. So it depend to which class we refer to.

Commits
-------

def7c99 fix dumper default representation
@xabbuh xabbuh closed this Jun 20, 2016
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.

4 participants
0