Skip to content

[VarDumper] consistent signature of getDump() in class + trait #16147

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
Oct 6, 2015

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Oct 6, 2015

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

@@ -29,7 +29,7 @@ public function assertDumpMatchesFormat($dump, $data, $message = '')
$this->assertStringMatchesFormat(rtrim($dump), $this->getDump($data), $message);
}

private function getDump($data)
public function getDump($data)
Copy link
Member Author

Choose a reason for hiding this comment

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

@nicolas-grekas Wouldn't it be enough to have the method protected in both the class and the trait?

Copy link
Member

Choose a reason for hiding this comment

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

I think yes

Copy link
Member Author

Choose a reason for hiding this comment

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

alright, I changed both methods

@nicolas-grekas
Copy link
Member

👍

@fabpot
Copy link
Member

fabpot commented Oct 6, 2015

Thank you @xabbuh.

@fabpot fabpot merged commit 48a9e83 into symfony:2.8 Oct 6, 2015
fabpot added a commit that referenced this pull request Oct 6, 2015
… trait (xabbuh)

This PR was merged into the 2.8 branch.

Discussion
----------

[VarDumper] consistent signature of getDump() in class + trait

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

Commits
-------

48a9e83 consistent signature of getDump() in class + trait
@xabbuh xabbuh deleted the pr-16126-tweak branch October 6, 2015 16:19
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