Skip to content

Commit

Permalink
[VarDumper] Allow dd() to be called without arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
SjorsO authored and nicolas-grekas committed Sep 21, 2018
1 parent a1ca55b commit a73dfad
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Symfony/Component/VarDumper/Resources/functions/dump.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ function dump($var, ...$moreVars)
}

if (!function_exists('dd')) {
function dd($var, ...$moreVars)
function dd(...$vars)
{
VarDumper::dump($var);

foreach ($moreVars as $v) {
foreach ($vars as $v) {
VarDumper::dump($v);
}

exit(1);
die(1);
}
}

0 comments on commit a73dfad

Please sign in to comment.