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

Commit 42f0984

Browse filesBrowse files
freekmurzenicolas-grekas
authored andcommitted
[VarDumper] Make dump() a little bit more easier to use
1 parent 0a9d46d commit 42f0984
Copy full SHA for 42f0984

File tree

Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Filter options
  • src/Symfony/Component/VarDumper/Resources/functions
Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed

‎src/Symfony/Component/VarDumper/Resources/functions/dump.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/VarDumper/Resources/functions/dump.php
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,11 @@ function dump($var)
2020
foreach (func_get_args() as $var) {
2121
VarDumper::dump($var);
2222
}
23+
24+
if ($moreVars) {
25+
return func_get_args();
26+
}
27+
28+
return $var;
2329
}
2430
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.