Skip to content

Commit a73dfad

Browse files
SjorsOnicolas-grekas
authored andcommitted
[VarDumper] Allow dd() to be called without arguments
1 parent a1ca55b commit a73dfad

File tree

1 file changed

+3
-5
lines changed
  • src/Symfony/Component/VarDumper/Resources/functions

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@ function dump($var, ...$moreVars)
3232
}
3333

3434
if (!function_exists('dd')) {
35-
function dd($var, ...$moreVars)
35+
function dd(...$vars)
3636
{
37-
VarDumper::dump($var);
38-
39-
foreach ($moreVars as $v) {
37+
foreach ($vars as $v) {
4038
VarDumper::dump($v);
4139
}
4240

43-
exit(1);
41+
die(1);
4442
}
4543
}

0 commit comments

Comments
 (0)