Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[VarDumper] Make dump() variadic #23709

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
Aug 1, 2017
Merged

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Jul 29, 2017

Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

{
foreach (func_get_args() as $var) {
if (!$vars) {
throw new ArgumentCountError('dump() requires at least 1 argument.');
Copy link
Contributor

@ro0NL ro0NL Jul 29, 2017

Choose a reason for hiding this comment

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

\ArgumentCountError?

edit: guess it's not really needed in the root namespace :)

@@ -15,9 +15,13 @@
/**
* @author Nicolas Grekas <p@tchwork.com>
*/
function dump($var)
function dump(...$vars)
Copy link
Member

Choose a reason for hiding this comment

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

should be $var, ...$moreVars

@chalasr chalasr added this to the 4.0 milestone Jul 29, 2017
@fabpot
Copy link
Member

fabpot commented Aug 1, 2017

Thank you @chalasr.

@fabpot fabpot merged commit 33b737b into symfony:master Aug 1, 2017
fabpot added a commit that referenced this pull request Aug 1, 2017
This PR was merged into the 4.0-dev branch.

Discussion
----------

[VarDumper] Make dump() variadic

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Commits
-------

33b737b Make dump() variadic
@chalasr chalasr deleted the dump-variadic branch August 1, 2017 07:04
@fabpot fabpot mentioned this pull request Oct 19, 2017
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.

8 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.